Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
&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)
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
Comment:
If &variablename is a numeric type, MFG converts it to a text string. For example, 123 becomes "123".