4 Replies - 628 Views - Last Post: 27 February 2009 - 04:38 PM Rate Topic: -----

#1 S3lkies  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 248
  • Joined: 09-January 09

ummmm not sure what to title this as

Posted 27 February 2009 - 04:05 AM

ok first up my friend sent me this code as he thought i could help him ... ive had a look at it tried a few things and just cant get it to work S= ... can someone else have a look please thank you

o this is the original ... (what my friend sent me) this has not been edited or anything

Private Sub btndeposit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btndeposit.Click


Dim bank As Double
Dim deposit As Double

bank = CDbl(Val(lblbank.Text))
deposit = CDbl(Val(btndeposit.Text))
deposit = CDbl("Enter your deposit")
bank = CDbl(InputBox(CStr(CDbl(deposit))))
bank = bank + deposit
bank = CDbl(CDbl(deposit)) 

This post has been edited by S3lkies: 27 February 2009 - 04:06 AM


Is This A Good Question/Topic? 0
  • +

Replies To: ummmm not sure what to title this as

#2 chili5  Icon User is offline

  • D.I.C Lover

Reputation: 20
  • View blog
  • Posts: 1,144
  • Joined: 28-December 07

Re: ummmm not sure what to title this as

Posted 27 February 2009 - 02:27 PM

What's not working?

What is it supposed to do, and what is it doing?
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6092
  • View blog
  • Posts: 23,612
  • Joined: 23-August 08

Re: ummmm not sure what to title this as

Posted 27 February 2009 - 02:56 PM

Something comes to mind...monkeys and typewriters...

Tell your friend the code is nonsense and shows a complete lack of knowledge and understanding, and probably represents nothing more than a horrific attempt at copy and paste programming.
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1642
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: ummmm not sure what to title this as

Posted 27 February 2009 - 03:00 PM

1.) This is VB.NET code and not VB6 so I'm moving to the VB.NET forum :)
2.)
Are you receiving any errors? Does this code not work that way you intended it? When asking for help there are a couple items that are vital in order for someone to properly help you:

  • Post the code you're having problems with (DONE)
  • Post the exact error you're receiving, if you are receiving one
  • If no error explain what the code is doing versus what you want it to do
  • Post your question in the body of your post, not the description field

Was This Post Helpful? 1
  • +
  • -

#5 S3lkies  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 248
  • Joined: 09-January 09

Re: ummmm not sure what to title this as

Posted 27 February 2009 - 04:38 PM

View PostPsychoCoder, on 27 Feb, 2009 - 02:00 PM, said:

1.) This is VB.NET code and not VB6 so I'm moving to the VB.NET forum :)
2.)
Are you receiving any errors? Does this code not work that way you intended it? When asking for help there are a couple items that are vital in order for someone to properly help you:
  • Post the code you're having problems with (DONE)
  • Post the exact error you're receiving, if you are receiving one
  • If no error explain what the code is doing versus what you want it to do
  • Post your question in the body of your post, not the description field


oh ok thank you for moving it and also this is why I cant figure it out .. i thought it was a vb6 not vb.net...

thank you [=
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1