test if variable is greater than zero

FS_Stones

New member
Joined
Dec 14, 2004
Messages
1
Programming Experience
Beginner
i have a function that tests if a something entered in a textbox is greater than zero and every time it runs is comes up as false even when it is a number like 12 for example just wondering if anyone could help me out
thanks
 
Parsing

Did you remember to parse the textbox's text to an integer? This would typically be something like this:

if Integer.Parse(textbox1.text) > 0 then
messagebox.show("Bigger than 0!")
EndIf


It might be a good idea to show us the code, if this isn't the problem...

;)
 
Back
Top