|
pfc_undo
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.pfc_undo
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_undo()
|
Name
|
Datatype
|
ls_undotype
|
String
|
event pfc_undo;call super::pfc_undo;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_Undo
//
// Arguments: None
//
// Returns: integer
// 1 = success;
// 0 = nothing to undo
// -1 = error
//
// Description: Restore the last treeview change.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
String ls_undotype
// do not undo if undo is not set
If Not ib_undo Then Return -1
// determine the undo we are performing
If of_CanUndo(ls_undotype) then
Choose Case ls_UndoType
Case UNDO_DELETE
return this.event pfc_undodelete()
Case UNDO_INSERT
return this.event pfc_undoinsert()
Case UNDO_EDIT
return this.event pfc_undoedit()
End Choose
End If
Return 0
end event