&IS-PRINTABLE

Examines an argument and returns 1 if the argument contains printable characters only: characters with hexadecimal representation 20 hex through 7E hex. Otherwise, it returns 0.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

&IS-PRINTABLE (&variablename)

Aliases:

&-printable (&variablename)&Is-Printable (&variablename)
&isprintable (&variablename) &IsPrintable (&variablename)
&ISPRINTABLE (&variablename)

Comment:

If &variablename is a numeric type, MFG converts it to a text string. For example, 123 becomes "123".

Examples:

&IS-PRINTABLE ("ABC")   =  0  (the string contains a tab)
&IS-PRINTABLE ("ABC ")    = 1
&IS-PRINTABLE ("ABC")     = 1
&IS-PRINTABLE ("abc")     = 1
&IS-PRINTABLE ("abc%")    = 1
&IS-PRINTABLE ("AbCd")    = 1
&IS-PRINTABLE ("123A")    = 1
&IS-PRINTABLE (123)       = 1
&IS-PRINTABLE ("")        = 0
&IS-PRINTABLE (&HEX-AS-STRING("1F")) = 0
&IS-PRINTABLE (&HEX-AS-STRING("20")) = 1
&IS-PRINTABLE (&HEX-AS-STRING("7E")) = 1
&IS-PRINTABLE (&HEX-AS-STRING("7F")) = 0