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_hexfmbin( <cbinary> [, <nbinarylength> [, <nposition> ] ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CH_HEXFMBIN( <cBinary> [, <nBinaryLength> [, <nPosition> ] ] )


Parameters

<cBinary>
Binary string to convert.

<nBinaryLength>
Number of bytes in binary string to convert.

<nPosition>
Starting byte in the binary string. The default is the first byte (1).


Returns

The number of hexadecimal digits returned is the number of binary 
bytes * 2.


Description

If <nBinaryLength> is specified, the requested number of binary bytes 
will be converted starting at the specified position in the string. If 
<nPosition> is omitted, 1 is assumed.

No error is generated if you attempt to read beyond the end of the 
string.


Examples

? CH_HEXFMBIN('EFG')
454647

cVar = 'ABCDEFGHIJ'
? CH_HEXFMBIN(cVar, 3, 5)
454647



See Also: CH_HEXTOBIN()

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