pfc_undo


pfcapsrv.pbl   >   pfc_n_cst_lvsrv_datasource   >   pfc_undo   

Full name pfc_n_cst_lvsrv_datasource.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 listview change.  
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						6.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 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

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_lvs.pfc_undo pfc_u_lvs

     
Name Owner
pfc_n_cst_lvsrv_datasource.of_CanUndo pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.pfc_undodelete pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.pfc_undoinsert pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.pfc_undoedit pfc_n_cst_lvsrv_datasource

     
Full name
No Data

     
Name Scope
No Data