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_chr4(<expn> [,@<memvarc> [,<positionn>]]) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: CH_CHR4(<expN> [,@<memvarC> [,<positionN>]])

Overwrites four bytes in memory variable with signed long integer.

Example

* Store 1000 into bytes 9-12 of string
CHR4(1000,@String,9)

* return 1000 as a 4 byte string
? CHR4(1000)

Notes

The specified number is "poked" into the character memory-variable starting
at the specified position (default position = 1).  The number is stored in
standard Intel four-byte low-high-low-high long 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_CHR4(<expN>) with no second parameter returns the four-byte long-integer
representation of the specified number.  It is similar to Clipper's CHR
function but returns four bytes instead of one.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson