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

Overwrites two bytes in memory-variable with unsigned integer.

Example

* Store 1000 into bytes 8-9 in string
CHR2(1000,@String,8)

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

Notes

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: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson