<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > Load / Save Commands > String-Commands * TXT-Command |
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:
• IEF. / NEF. - If - exist - File