PDA

View Full Version : Comparing a string / text?


patrick6
03-21-2004, 01:23 PM
I am trying to compare the input of a text box.


if Input.GetText("Input4" >35) then
Dialog.Message("Don't Undercharge!", "It is suggested you have an hourly minimum of at least $35", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else

It says I am comparing a number to a string. I realize this but how do I change it for the text box to have numbers intput only?

Patrick

patrick6
03-21-2004, 02:43 PM
I received an email saying there was a reply to this but I can't see anything but my psot?

Worm
03-21-2004, 06:15 PM
Try:

if String.ToNumber(Input.GetText("Input1")) > 35 then

patrick6
03-21-2004, 06:40 PM
Thanks!:lol