Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - ch_chr4( <nvalue> [, @<cmemvar> [, <nposition>] ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CH_CHR4( <nValue> [, @<cMemvar> [, <nPosition>] ] )


Parameters

<nValue>
Value to poke.

<cMemvar>
Name of memory variable into which <nValue> should be poked.

<nPosition>
Byte position in the memory variable. The default is the first byte (1).


Returns

CH_CHR4(<nValue>) with no second parameter returns the four-byte long-
integer representation of the specified number. It is similar to the 
CHR() function but returns four bytes instead of one.


Description

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.


Examples

// Store 1000 into bytes 9-12 of string
CH_CHR4(1000, @cString, 9)

// Return 1000 as a 4 byte string
? CH_CHR4(1000)



See Also: CH_CHR1() CH_CHR2() CH_CHR8()

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