Examines an argument and returns 1 if the argument contains valid hexadecimal characters: 0-9, A-F, or a-f; otherwise, returns 0.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
Syntax:
&IS-HEX (&variablename)
Aliases:
&is-hex (&variablename) &Is-Hex (&variablename)
&ishex (&variablename) &IsHex (&variablename)
&ISHEX (&variablename)
Examples:
&IS-HEX ("01234567890") = 1
&IS-HEX ("ABCDEF") = 1
&IS-HEX ("abcdef") = 1
&IS-HEX ("+ABC") = 0
&IS-HEX ("-123") = 0
&IS-HEX ("A ") = 0
&IS-HEX ("Af") = 1
&IS-HEX ("AG") = 0
&IS-HEX ("") = 0
Comment:
If &variablename is a numeric type argument, MFG converts it into a text string. A negative number--because it has a minus sign--is not considered a hex string.