<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > Conversions > String-Commands * TXT-Command |
MiniRobotLanguage (MRL)
TXT.ctu
TXT.Convert_to_Unicode
This command will do several converts from ANSI to Unicode.
Intention
This command has three modes of Operation:
TXT.ctu
Without Parameters it will convert the TXT.-internal Buffer to Unicode.
TXT.ctu|$$TXT
Called with P1, it will convert the content of P1 to Unicode and store it on the TOS.
TXT.ctu|$$TXT|$$UNI
Called with P1 and P2, it will convert the content of P1 to Unicode and store it in P2.
If you convert files from Unicode to ANSI and back, please note that due the nature of this process, some international characters may get lost.
TXT.Convert_to_Unicode|$$FIL
MBX.Operation was succesfull, Result: $tos$
Syntax
TXT.ctu[|P1][|P2]
TXT.Convert_to_Unicode[|P1][|P2]
Parameter Explanation
P1 - (Input, optional) Variable with ANSI-Content. If omitted the TXT.-internal Buffer is been used.
P2 - (Output) Variable with the result of the operation. If omitted the result is placed on TOS.
Example
'*****************************************************
' EXAMPLE 1: TXT.luf and TXT.ctu
'*****************************************************
VAR.$$LAA=?path\..\Pics\Outlook.msg
TXT.ltf|$$LAA
TXT.ctu
TXT.gpt|$$TXT
PRT.$$TXT
MBX.Ready
ENR.
Remarks
Can acess very large pathes up to 32767 characters due to the use of NTFS-direct.
Limitations:
-
See also:
• IEF. / NEF. - If - exist - File