Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    Alabama
    Posts
    109

    Comparing a string / text?

    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

  2. #2
    Join Date
    Mar 2004
    Location
    Alabama
    Posts
    109

    Reply?

    I received an email saying there was a reply to this but I can't see anything but my psot?

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Try:

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

  4. #4
    Join Date
    Mar 2004
    Location
    Alabama
    Posts
    109

    Thanks Worm!

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts