Determines whether a variable is represented internally in numeric form and returns 1 if numeric or 0 if non-numeric.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
Syntax:
&NUMERIC( &variablename)
Aliases:
&numeric( &variablename) &Numeric( &variablename)
Example:
Set &II to true and test for its numeric value.
% &II = 1
% IF &NUMERIC( &II)
/* YOU WILL GET THIS TEXT
.
.
.
% END
Comments:
Note that &NUMERIC ("123") returns 0 (false), because the argument is a string. To test whether a string contains a numerics, use &IS-NUMERIC or &IS-DIGITS.