<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > Insert/Delete Text > Delete_Lines |
MiniRobotLanguage (MRL)
TXT.dls
TXT.Delete_Lines
Delete multiple Lines, including the $crlf$ at the end of the Lines, from Line P1 to Line P2.
Intention
This command is used to delete Lines, starting with Line P1 until and including Line P2.
The Lines are deleted, including the following $crlf$ and the remaining Text is moved up.
$$OUT=?exeloc\Result.txt
$$TXT=<ABCDEFG>$crlf$<123456>$crlf$<abcdefg>$crlf$
TXT.Load_Pure_Text|$$TXT
$$POS=2
$$NUM=3
TXT.dls|$$POS|$$NUM
TXT.Save_File|$$OUT
ENR.
Result:
<ABCDEFG>
Syntax
TXT.dls|P1|P2
TXT.Delete_Lines|P1|P2
Parameter Explanation
P1 - (Input,Numeric) Variable with Text that will be Inserted at Position P2.
P2 - (Input,Numeric) Variable with Line-Number, before which the Text will be inserted.
Example
'*****************************************************
' EXAMPLE 1: TXT.dls
'*****************************************************
$$OUT=?exeloc\Result.txt
$$TXT=<ABCDEFG>$crlf$<123456>$crlf$<abcdefg>$crlf$
TXT.Load_Pure_Text|$$TXT
$$POS=2
$$NUM=3
TXT.dls|$$POS|$$NUM
TXT.Save_File|$$OUT
ENR.
Remarks
-
Limitations:
-
See also:
• IEF. / NEF. - If - exist - File