home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2005 November / PCWELT_11_2005.ISO / pcwsoft / autoit-v3-setup.exe / Examples / StringIsInt.au3 < prev    next >
Encoding:
Text File  |  2004-09-22  |  234 b   |  6 lines

  1. StringIsInt("+42")  ;returns 1
  2. StringIsInt("-00")  ;returns 1
  3. StringIsInt("1.0")  ;returns 0 due to the decimal point
  4. StringIsInt(1.0)    ;returns 1 due to number-string conversion
  5. StringIsInt("1+2")  ;returns 0 due to plus sign
  6.