Next: Undo functionalities
Up: Various attributes and functions
Previous: Builtin functions
The following functions provide a mechanism to preserve informations
betweens two executions of scripts.
-
Clipboard:Set(NAME,INFO)
-
This statement puts an information in a clipboard
- NAME (input STRING or INT) is the name of the clipboard.
- INFO (input ALL TYPES) is the information.
-
Clipboard:Test(NAME)
-
This function tests if there is an information stored in a clipboard.
- NAME (input STRING or INT) is the name of the clipboard.
- The function returns TRUE if a value is associated to the clipboard
else FALSE.
-
Clipboard:Get(NAME)
-
This function gets the information stored in a clipboard.
- FOO (input) is not used
- NAME (input STRING or INT) is the name of the clipboard.
- The function returns the value associated to the clipboard.
Example 57: A simple script to copy the selected statement in the clipboard "cut0".
SCRIPT paste()
foo := Clipboard:Set("cut0",COPY($cstat))
ENDSCRIPT
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
Remark: We recommend to use the clipboard "cut0" to implement the CUT & PASTE
functionalities.
Next: Undo functionalities
Up: Various attributes and functions
Previous: Builtin functions
Yann Mevel
1999-04-30