Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month! GetIt Reference Guide - syntax: ch_chr2(<expn> [,@<memvarc> [,<positionn>]]) [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: CH_CHR2(<expN> [,@<memvarC> [,<positionN>]])

Overwrites two bytes in memory-variable with unsigned integer.


* Store 1000 into bytes 8-9 in string

* Returns two-character representation of 1000
? CHR2(1000)


The specified number is "poked" into the character variable starting at the
specified position (default position = 1).  The number is stored in standard
Intel low-high integer format.  The variable name must be prefixed with '@'
to be updated properly.

Do not attempt to store data beyond the end of the string.

CH_CHR2(<expN>) with no second parameter returns the two-byte representation
of the specified number.  It is similar to Clipper's CHR function but
returns two bytes instead of one.

Online resources provided by: --- NG 2 HTML conversion by Dave Pearson