pfc_undo


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   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
No Data

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

     
Name Owner
pfc_u_tvs.pfc_undo pfc_u_tvs

     
Name Owner
pfc_n_cst_tvsrv_levelsource.of_canundo pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.pfc_undodelete pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.pfc_undoinsert pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.pfc_undoedit pfc_n_cst_tvsrv_levelsource

     
Full name
No Data

     
Name Scope
No Data