of_CanUndo


pfcapsrv.pbl   >   pfc_n_cst_lvsrv_datasource   >   of_CanUndo   

Full name pfc_n_cst_lvsrv_datasource.of_CanUndo
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_CanUndo(ref string)

Name Datatype
No Data

Name Datatype
No Data

public function boolean of_CanUndo (ref string as_undotype);//////////////////////////////////////////////////////////////////////////////
//	Public Function:	of_CanUndo
//	Arguments:		as_undotype		The type of undo we are performing.  Passed by reference
//	Returns:			Boolean
//						true = we can undo the last edit/insert/delete
//						false = cannot undo the last edit/insert/delete
//	Description:	Returns if undo can be performed and the type of undo that can be performed
//////////////////////////////////////////////////////////////////////////////
//	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.
//////////////////////////////////////////////////////////////////////////////
// initialize the undo type
as_undotype = ""

// if undo not on then we cannot undo
if not ib_Undo then return false

// Validate arguments
choose case is_UndoType
	case UNDO_EDIT, UNDO_INSERT, UNDO_DELETE
		// Good style.
		as_undotype = is_UndoType
		return true
end choose

return false
end function

     
Name Owner
pfc_n_cst_lvsrv_datasource.of_canundo pfc_n_cst_lvsrv_datasource
pfc_u_lvs.of_canundo pfc_u_lvs
pfc_n_cst_lvsrv_datasource.pfc_undo pfc_n_cst_lvsrv_datasource

     
Name Owner
No Data

     
Full name
No Data

     
Name Scope
No Data