String-Commands * TXT-Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > TXT. Text-File Engine > Conversions >

String-Commands * TXT-Command

TXT.Convert_to_ANSI

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.cta

TXT.Convert_to_ANSI

This command will do several converts from Unicode to ANSI.

 

NTFS-Direct

 

Intention

 

This command has three modes of Operation:

 

  TXT.cta

 

Without Parameters it will convert the TXT.-internal Buffer to ANSI.

 

 TXT.cta|$$TXT

 

Called with P1, it will convert the content of P1 to ANSI and store it on the TOS.

 

TXT.cta|$$TXT|$$UNI

 

Called with P1 and P2, it will convert the content of P1 to ANSI 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$

 

There is no checking if the file or Text was Unicode before. Therefore converting an ANSI File to ANSI may lead to a loss of half the data.

 

 

Syntax

 

 

TXT.cta[|P1][|P2]

TXT.Convert_to_ANSI[|P1][|P2]

 

 

Parameter Explanation

 

P1 - (Input, optional) Variable with Unicode-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.cta

'*****************************************************

VAR.$$LAA=?path\..\Pics\Outlook.msg

TXT.luf|$$LAA

TXT.cta

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:

 

    Split File

    Join File

    OPT. - Optional Settings

    FIL.Generate numbered Name

    FIL.Move numbered File

    ATF - Append-to-File

    CFF. - Copy-From-File

    CTF - Copy-To-File

    COP. - Copy File

    SHF. - Shell-File-Operation

    MDF. - Make-Direktory-File

    MKD. - Make-Directory

    GLC. - Get-Line-Count

    IEF. / NEF. - If - exist - File

    LFF - Line-From-File

    WFF. - Wait-For-File

    REN. - Rename File/Dir