pfc_update


pfcmain.pbl   >   pfc_u_dw   >   pfc_update   

Full name pfc_u_dw.pfc_update
Access public
Extend of integer
Return value integer
Prototype event integer pfc_update(boolean,boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

event pfc_update;//////////////////////////////////////////////////////////////////////////////
//	Event:  			pfc_update
//	Arguments:		ab_accepttext:	When applicable, specifying whether control should perform an
//											AcceptText prior to performing the update:
//						ab_resetflag:	Value specifying whether object should automatically 
//											reset its update flags.
//	Returns:			Integer
//	 					1 = The update was successful
//						-1 = The update failed
//	Description:	Specific Update logic.  Either perform a regular single dw
//						update or a Multiple table update.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						5.0   Initial version
// 					6.0 	Enhanced to include PreUpdate event.
//////////////////////////////////////////////////////////////////////////////
//	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.
//////////////////////////////////////////////////////////////////////////////
integer	li_rc

// Verify passed arguments.
if IsNull(ab_accepttext) or IsNull(ab_resetflag) then return -1 

// Call for PreUpdate functionality.
if this.Event pfc_PreUpdate() < 0 then return -1

// Call the multi-table update if applicable.
if IsValid (inv_MultiTable) then 
	li_rc = inv_MultiTable.of_Update (ab_accepttext, ab_resetflag)
else
	li_rc = this.Update(ab_accepttext, ab_resetflag)
end if

return li_rc
end event

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_updatebottomup pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_updatetopdown pfc_n_cst_dwsrv_linkage
pfc_u_dw.of_Update pfc_u_dw
pfc_u_dw.of_Update pfc_u_dw

     
Name Owner
datawindow.update datawindow
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_dwsrv_multitable.of_update pfc_n_cst_dwsrv_multitable
pfc_u_dw.pfc_preupdate pfc_u_dw

     
Full name
No Data

     
Name Scope
No Data