Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2003
    Posts
    10

    Verify String to See If It's Numerical?

    I've tried looking in the help file and the forum, but I couldn't find the answer to my question.

    Is it possible to make Setup Factory detect if a string is numerical or not? What I'm doing is making it edit a text file. It goes through every line in the file and if it start with a number, it will then change it to something else. However, if it's not a number, then I don't want it to change it.

    So, can I make it check to see (on each line) if it's numerical?

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

    Re: Verify String to See If It's Numerical?

    Multiply the variable by zero, if it is numeric, the result will be zero.

    AssignValue(%IsNumeric%=%CustomVar% * 0)
    IF (%IsNumeric% = 0)
    The variable was numeric
    END IF

  3. #3
    Join Date
    Jun 2003
    Posts
    10

    Re: Verify String to See If It's Numerical?

    Thanks a lot. [img]/ubbthreads/images/icons/smile.gif[/img] I got it to work.

Posting Permissions

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