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

Overwrites one byte in memory-variable at position with Ascii value.

Example

* Store CHR(27) into 8th byte of String
CHR1(27,@String,8)
SUBSTR(String,1,7)+CHR(27)+SUBSTR(String,9)   && same thing with SUBSTR

Notes

The specified number is "poked" into the character variable at the specified
byte position (default position = 1).  The variable name must be prefixed
with '@' to be updated properly.

CHR1(<expN>) with no second parameter returns the character representation
of the specified integer.  It returns the same value as the Clipper function
CHR().  <expN> must assume a value of 0 through 255.

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