Visual FoxPro
Visual FoxPro
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat Visual FoxPro Downloads
LOCAL loCrypt2
LOCAL lcEncodedStr
LOCAL lcEncoding
LOCAL lcCharset
LOCAL lcStr
loCrypt2 = CreateObject('Chilkat.Crypt2')
* The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
lcEncodedStr = "SGVsbG8gV29ybGQ="
lcEncoding = "base64"
lcCharset = "utf-8"
lcStr = loCrypt2.DecodeString(lcEncodedStr,lcCharset,lcEncoding)
? lcStr
* Output is "Hello World"
RELEASE loCrypt2