CreateBinary()
This function converts a string containing binary data to a format that can be recognized by an OLE object.
Usage |
cOutString = CreateBinary( cInString ) |
Parameter |
Value |
Meaning |
cInString |
Character |
Binary characters to be converted. |
cOutString |
Character |
String flagged internally by VFP as containing binary data. |
Example |
lcString1 = CHR(01) + CHR(02) + CHR(03) lcString2 = CreateBinary( lcString1 ) ? lcString2 == lcString1 && .T., identical within VFP oObject.Method(lcString1) && OLE Error oObject.Method(lcString2) && works |
See Also |