next up previous contents index
Next: Dialog boxes Up: Various attributes and functions Previous: Clipboard functionalities

  
Undo functionalities

The following builtin functions provides a mechanism to implement the UNDO & REDO functionalities.

  $\blacktriangleright$ Undo:Save(AST,SAVESYMTAB,SAVEDECL)
 
This function saves a AST in the UNDO list

$\vartriangleright$ Example 59:Save the AST before a transformation

  SCRIPT transfWithUndo()
    stat:=$cstat 
    foo:=Undo:Save(stat.PARENT,TRUE,TRUE) 
    stat <- PARSESTAT("        print *,100") 
  ENDSCRIPT



Yann Mevel
1999-04-30