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_chr8( <nvalue> [, @<cmemvar> [, <nposition>] ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CH_CHR8( <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_CHR8(<nValue>) with no second parameter returns the IEEE eight-byte 
character representation of the specified number. It is similar to the 
CHR() function but returns eight 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 IEEE eight-byte floating point format. The variable name 
must be prefixed with @ to be updated properly.

Do not store data beyond the end of the string.


Examples

// Store eight-byte IEEE representation
// of 3.14159 into string bytes 9-16
SET DECIMALS TO 5
CH_CHR8(PI(), @cString, 9)

// Returns eight-character IEEE representation
// of Pi as character string
SET DECIMALS TO 5
? CH_CHR8(PI())



See Also: CH_CHR1() CH_CHR2() CH_CHR4()

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