<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > To LOF / To Var > String-Commands * TXT-Command |
MiniRobotLanguage (MRL)
TXT.gpt
TXT.Get_pure_Text
Copy the TXT.-internal Buffer into two Variables using normal Text-Format in Variable 1,
and the Filename in Variable 2.
Intention
This command is used to get the Text that is in the Internal TXT-Buffer into 2 Variables.
Variable P1 will contain the "pure Text". Variable P2 will receive the filename and Path.
This Command-Set can be used together with TXT.lpt to quickly switch between several Text-Files
without loading them each time new from the harddrive.
CFF.$$FIL|$$RES
' Load Pure Text
TXT.lpt|$$RE|$$FIL
' get Pure Text
TXT.gpt|$$RES|$$FIL
Syntax
TXT.gpt|P1[|P2]
TXT.Get_pure_Text|P1[|P2]
Parameter Explanation
P1 - (Output) Variable with the Textfile.
P2 - (Output) Variable will contain the Path and FIlename.
Example
'*****************************************************
' EXAMPLE 1: TXT.lpt and TXT.fov etc.
'*****************************************************
VAR.$$LAA=?path\..\Pics\Test.txt
CFF.$$LAA|$$RES
TXT.lpt|$$RES|$$LAA
TXT.gfn|$$LAB
NVC.$$LAB=Test.txt
GTO.Lab_failed
EIF.
TXT.gtl|$$LAB
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