FT_BYT2HEX() Convert byte to hexadecimal version of its binary value ──────────────────────────────────────────────────────────────────────────────
Syntax
FT_BYT2HEX( cByte ) -> cHexValue
Arguments
<cByte> is the byte to convert.
Returns
Three-character string, consisting of two digits of hexadecimal notation and letter 'h' to signify hex. Returns NIL if parameters are faulty.
Description
Can be used to show results of bit manipulation, both before and after.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
Examples
These three code lines perform a bitwise AND on bytes with values of CHR(20) and CHR(36), and deliver the result as a string in hexadecimal format, using 'h' to signify hexadecimal.