Pop_Intern

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > TXT. Text-File Engine > Push / Pop >

Pop_Intern

TXT.Pok

Previous Top Next


MiniRobotLanguage (MRL)

 

TXT.Pop

TXT.Pop_Intern

Get the TXT.-internal Buffer from an internal Place that is numbered from 0 to 9.
The Content of the internal Place will be cleared.

 

 

Intention

 

This command is used to restore a complete Backup of the currently loaded Text from an internal Variable that is numbered from 0 to 9.

Therefore the Text must have been "saved" using the TXT.Push_Intern or the TXT.Push_Keep - Command.

The Content of the internal Place will be cleared after it was moved back into TXT.-Buffer.

 

' Load Textfile into internal Buffer for further TXT.-Command Operations

' ($$RES is 0/1 success)

TXT.Load_Textfile|$$FIL|$$RES

' Reserve speichern

TXT.Pus|1

' We have now a Backup of the Textfile in Internal Storage "1".

' It can be restored - overwriting the current Buffer-Content using:

TXT.Pop|1

 

 

Syntax

 

 

TXT.Pop[|P1]

TXT.Pop_Intern[|P1]

 

 

Parameter Explanation

 

P1 - (Input) Number or Variable with number. Interger Number between 0 and 9.

    If omitted the place "0" is used.

 

 

Example

 

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

'

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

 

 

Remarks

TXT.Pop is much faste compared with TXT.tov. Therefore in Scripts that should run as fast as possible,

this command is the better choice.

 

Limitations:

 

-

 

 

See also:

 

  !TXT. - Text File Engine

  Push_Intern

  Pop_Intern  

  Push_Keep

  Pop_Keep

  Clear_Intern

  TXT.Load Textfile

  TXT.Clear  

  TXT.To_Var

  TXT.From_Var

  TXT.To_Var_and_Clear

  TXT.Get_Filename

  TXT.Get_Lenght