×
Menu
Index

ISSTRTYPE Subroutine

 
Usage:
n = ISSTRTYPE(s, t)
 
Description:
ISSTRTYPE returns 1 if the string type matches the type (t) requested. Use 0 for integer check, 1 for decimal, 2 for alphabetic, 3 for alpha-numeric.
 
Example:
sub main()
   s[1] = "1234"
   s[2] = "23.4"
   s[3] = "abc"
   s[4] = "123abc"
 
   for i = 1 to 4
     printl("String ^"", s[i],"^"")
     printl("  IsInt: ", IsStrType(s[i],0)
     printl("  IsDec: ", IsStrType(s[i],1)
     printl("  IsAlpha: ", IsStrType(s[i],2)
     printl("  IsAlphaNum: ", IsStrType(s[i],3)
     printl("")
   next
end sub