Delete_Characters

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > TXT. Text-File Engine > Insert/Delete Text >

Delete_Characters

TXT.dch

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.dch

TXT.Delete_Characters
Delete Text at the specified Byte-Position in the actual TXT.-Buffer.

 

 

Intention

 

This command is used to delete Bytes or Text from the internal Text-Buffer at any Position.
The Text is deleted and the remaining Text is moved up.

 

$$OUT=?exeloc\Result.txt

$$TXT=<ABCDEFG>$crlf$<ABCDEFG>$crlf$<ABCDEFG>$crlf$

TXT.Load_Pure_Text|$$TXT

$$POS=2

$$NUM=3

TXT.dch|$$POS|$$NUM

TXT.Save_File|$$OUT

ENR.

 

Result:

 

<DEFG>

<ABCDEFG>

<ABCDEFG>

 

 

 

 

Syntax

 

 

TXT.dch|P1|P2

TXT.Delete_Characters|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.dch

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

$$OUT=?exeloc\Result.txt

$$TXT=<ABCDEFG>$crlf$<ABCDEFG>$crlf$<ABCDEFG>$crlf$

TXT.Load_Pure_Text|$$TXT

$$POS=2

$$NUM=3

TXT.dch|$$POS|$$NUM

TXT.Save_File|$$OUT

ENR.

 

 

Remarks

 

-

 

Limitations:

 

-

 

 

See also:

 

  TXT.Load Textfile

  TXT.Clear

  TXT.From_Var

  TXT.Load_pure_Text

  TXT.Get_pure_Text

  FIL.Generate numbered Name

  FIL.Move numbered File

  ATF - Append-to-File

  CFF. - Copy-From-File

  CTF - Copy-To-File

  COP. - Copy File

  TXT.Get_Filename

  TXT.Get_Lenght

  TXT.To_Var_and_Clear

    GLC. - Get-Line-Count

    TXT.Get_Line

    IEF. / NEF. - If - exist - File

    LFF - Line-From-File

    WFF. - Wait-For-File

    REN. - Rename File/Dir