<< Click to Display Table of Contents >> Navigation: 3. Script Language > TXT. Text-File Engine > Push / Pop > Prepend_to_Internal |
MiniRobotLanguage (MRL)
TXT.Ppi
TXT.Prepend_to_Internal
The Content of the TXT.-Buffer will be prepended to the Text that is already stored in the internal Memory.
Intention
This command is used to prepend either the TXT.-Buffer or a specified Variable to the specified Memory (0-9).
Later the whole Memory can be restored using the TXT.Pop_Intern or the TXT.Pop_Keep - Command.
The Content of the TXT.-Buffer will NOT be changed using this Command.
' Generate 5 Lines of Text A
$$TXA=ABCDEF$crlf$
$$TXB=$$TXA$$TXA$$TXA$$TXA
' Generate 5 Lines of Text B
$$TXC=123456$crlf$
$$TXD=$$TXC$$TXC$$TXC$$TXC
' Load first Text into TXT.-Buffer
TXT.Load_Pure_Text|$$TXB
' Save Reserve to internal Memory Place "0"
TXT.Push_Intern|0
' Load second Text into TXT.-Buffer
TXT.Load_Pure_Text|$$TXD
' Prepend it to first Text
TXT.ppi|0
TXT.dbp|0
ENR.
Syntax
TXT.Ppi[|P1]
TXT.Prepend_to_Internal[|P1]
Parameter Explanation
P1 - (Input) Number or Variable with number of Internal Memory. Can be any Number between 0 and 9.
If omitted the place "0" is used.
P2 - (Input,optional) Text. If given this will be appended to the Internal Memory. If omitted the current TXT-Buffer will be appended.
Example
'*****************************************************
'
'*****************************************************
Remarks
-
Limitations:
-
See also:
• Pop_Keep