TXB_TO_WSTRING
Function to copy a text buffer to a Unicode string.
Inputs
Input |
Data type |
Description |
HTXB |
DINT |
Handle of a valid text buffer. |
@WSTR |
WSTRING |
Destination Unicode character string. |
UTF8 |
BOOL |
Code page. See remarks below. |
Outputs
Output |
Data type |
Description |
OK |
BOOL |
TRUE if successful. |
Remarks
If UTF8 is TRUE, then the string is converted using the standard UTF8 encoding.
If UTF8 is FALSE, then the string is converted using the active code page.
The destination string is truncated if longer than 32000 characters.
TXB_TO_WSTRING |
IEC 61131-3 Automation platform > Programming - Reference guide > UNICODE strings (WSTRING) > TXB_TO_WSTRING |
Created with the Personal Edition of HelpNDoc: Free Kindle producer