String-Commands * TXT-Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > TXT. Text-File Engine > Load / Save Commands >

String-Commands * TXT-Command

TXT.Clear

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.clr

TXT.Clear

Clear the internal Buffer where a file was loaded with TXT.ltf

 

 

 

Intention

 

This Command is used to clear the internal Buffer, into which a Textfile was loaded, using the TXT.ltf-Command.

This Command will just free the memory that was used to store the Textfile.

You do not need to use this Command, as the SPR will freee all memory automatically:

- when you load a new file into the Buffer

- when the Script and the SPR-ends.

 

 

' Load Textfile into intrnal Buffer for further TXT.-Command Operations

' ($$RES is 0/1 success)

TXT.Load_Textfile|$$FIL|$$RES

MBX.Operation was succesfull: $$RES

TXT.Clear

 

 

 

 

Syntax

 

 

TXT.clr

TXT.Clear

 

 

Parameter Explanation

 

Does not need any Parameters

 

 

Example

 

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

' EXAMPLE 1: TXT.ltf  and TXT.clr and TXT.gtl

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

VAR.$$LAA=?path\..\Pics\Test.txt

TXT.ltf|$$LAA|$$RES

TXT.clr

TXT.gtl|$$LAB

JIV.$$LAB!0|Lab_failed

ENR.

 

 

Remarks

 

Can acess very large pathes up to 32767 characters due to the use of NTFS-direct.

 

Limitations:

 

-

 

 

See also:

 

•     TXT.Load Textfile

•     TXT.Clear

•     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