next up previous contents index
Next: Undo functionalities Up: Various attributes and functions Previous: Builtin functions

Clipboard functionalities

The following functions provide a mechanism to preserve informations betweens two executions of scripts.

  $\blacktriangleright$ Clipboard:Set(NAME,INFO)
 
This statement puts an information in a clipboard
  $\blacktriangleright$ Clipboard:Test(NAME)
 
This function tests if there is an information stored in a clipboard.
  $\blacktriangleright$ Clipboard:Get(NAME)
 
This function gets the information stored in a clipboard.

$\vartriangleright$ Example 57:  A simple script to copy the selected statement in the clipboard "cut0".

 
 SCRIPT paste() 
   foo := Clipboard:Set("cut0",COPY($cstat))
 ENDSCRIPT

$\vartriangleright$ Example 58:A simple script to insert a copy of the statement saved by the example 57.

 
 SCRIPT paste() 
   IF (Clipboard:Test("cut0")) THEN
     newStat := Clipboard:Get("cut0")
     TT := COPY(newStat)
     PASTE("AFTER",TT,$cstat)
   ENDIF
 ENDSCRIPT

  $\vartriangleright$ Remark: We recommend to use the clipboard "cut0" to implement the CUT & PASTE functionalities.


next up previous contents index
Next: Undo functionalities Up: Various attributes and functions Previous: Builtin functions
Yann Mevel
1999-04-30