• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

coding (1 Viewer)

Jouma47

New Member
Joined
Feb 9, 2006
Messages
29
Gender
Male
HSC
2006
Hi have no idea how to do this

its vb6

if someone can jst plz help me with it, its attached, once u download it u will know what to do, plz

thx
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Values should always be on the RHS of the equals sign.
Code:
Target = something else
What are you trying to do with the quotation marks?
 

Jouma47

New Member
Joined
Feb 9, 2006
Messages
29
Gender
Male
HSC
2006
can u then plz fix it

i get what ur saying with the equals signm, i know, i jst turned it around coz i couldnt get it to work
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Everyone is here to help you, but not to do it for you. If you have more specific questions other than doing the entire thing for you you'd probably get more responses...
 

ianc

physics is phun!
Joined
Nov 7, 2005
Messages
618
Location
on the train commuting to/from UNSW...
Gender
Male
HSC
2006
The data in a text box is a string; hence you cannot do calculations with it directly. Number calculations such as addition/multiplication etc can only be carried out on data types such as integer, single, long etc.

To do what i think you're trying to do in your vb code:

You have to create a variable with data type integer. Then say variable = textbox.text

You can then do calculations on the variable, eg variable = variable * 100

If you want the result in the text box to show again, obviously you'd have to make the text box display the variable as its text
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top