pfc_preupdate


pfcmain.pbl   >   pfc_w_master   >   pfc_preupdate   

Full name pfc_w_master.pfc_preupdate
Access public
Extend of integer
Return value integer
Prototype event integer pfc_preupdate()

Name Datatype
No Data

Name Datatype
No Data

event pfc_preupdate;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_preupdate
//
//	Arguments:  none
//
//	Returns:  integer
//	 1 = success
//	-1 = fail, do not continue with the save process
//
//	Description:
//	Perform any user-defined processing prior to saving
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	5.0   Initial version
// 6.0	Redirected to the Logical Unit of Work Service.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Let Logical Unit of Work Service perform the functionality (create if necessary).
If IsNull(inv_luw) Or Not IsValid (inv_luw) Then of_SetLogicalUnitofWork(True)
If IsValid(inv_luw) Then
	Return inv_luw.of_PreUpdate()
End If

Return -1
end event

     
Name Owner
pfc_w_master.pfc_save pfc_w_master

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_luw.of_preupdate pfc_n_cst_luw
pfc_w_master.of_setlogicalunitofwork pfc_w_master

     
Full name
No Data

     
Name Scope
No Data