Previous Topic Next topic Print topic


&IS-DIGITS

Examines an argument and returns 1 if the argument contains valid numeric digits only: 0123456789; otherwise, returns 0.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

&IS-DIGITS (&variablename)

Aliases:

&is-digits (&variablename)     &Is-Digits (&variablename)
&&isdigits (&variablename)     &IsDigits (&variablename)
ISDIGITS (&variablename)

Comments:

  • Signs and decimal points are not considered digits.
  • A negative numeric type argument value--because of the minus sign--is not considered to be all digits.
  • The original argument remains unchanged.

Examples:

&IS-DIGITS ("123")        = 1
&IS-DIGITS ("+123")       = 0
&IS-DIGITS ("-123")       = 0
&IS-DIGITS ("123-")       = 0
&IS-DIGITS ("123.")       = 0
&IS-DIGITS (123)          = 1
&IS-DIGITS (-123)         = 0
&IS-DIGITS ("123A")       = 0
&IS-DIGITS ("")           = 0
Previous Topic Next topic Print topic