<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > Insert/Delete Text > Delete_Line |
MiniRobotLanguage (MRL)
TXT.dli
TXT.Delete_Line
Delete a complete Line, including the $crlf$ at the end of the Line at the specified Position in the actual TXT.-Buffer.
Intention
This command is used to delete a complete Line, including the following $crlf$ from the internal Text-Buffer.
The Line is deleted 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
TXT.dli|$$POS
TXT.Save_File|$$OUT
ENR.
Result:
<ABCDEFG>
<ABCDEFG>
Syntax
TXT.dli|P1
TXT.Delete_Line|P1
Parameter Explanation
P1 - (Input,Numeric) Variable with Line-Number of Line that will be deleted.
Example
'*****************************************************
' EXAMPLE 1: TXT.dli
'*****************************************************
$$OUT=?exeloc\Result.txt
$$TXT=<ABCDEFG>$crlf$<123456>$crlf$<ABCDEFG>$crlf$
TXT.Load_Pure_Text|$$TXT
$$POS=2
TXT.dli|$$POS
TXT.Save_File|$$OUT
ENR.
Remarks
-
Limitations:
-
See also:
• IEF. / NEF. - If - exist - File