HP 3000 Manuals

CHR$ [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

CHR$ 

The CHR$ function returns the single ASCII character associated with a
number.

Syntax 

CHR$(N)

Parameters 

N                The numeric expression to be evaluated.  This must
                 evaluate to a value within the range of an HP Business
                 BASIC/XL integer.  If N is greater than 256, then HP
                 Business BASIC/XL performs (N MOD 256), and the CHR$
                 returns the ASCII character of that result.

Examples 

     10  A$ = CHR$(65)   !A$ = A
     20  B$ = CHR$(321)  !B$ = A



MPE/iX 5.0 Documentation