of_setlogicalunitofwork


pfcmain.pbl   >   pfc_u_base   >   of_setlogicalunitofwork   

Full name pfc_u_base.of_setlogicalunitofwork
Access public
Extend of integer
Return value integer
Prototype public function integer of_setlogicalunitofwork(boolean)

Name Datatype
No Data

Name Datatype
li_rc integer

public function integer of_setlogicalunitofwork (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetLogicalUnitofWork
//
//	Access:  public
//
//	Arguments:
//	ab_switch   enable/disable the base window service
//
//	Returns:  integer
//	 1 = success
//	 0 = no action necessary
//	-1 = error
//
//	Description:
//	Instantiates or destroys the Logical Unit of Work service
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

integer	li_rc

// Check arguments
if IsNull (ab_switch) then return -1

if ab_Switch then
	if IsNull(inv_luw) Or not IsValid (inv_luw) then
		inv_luw = create n_cst_luw
		inv_luw.of_SetRequestor (this)
		li_rc = 1
	end if
else
	if IsValid (inv_luw) then
		destroy inv_luw
		li_rc = 1
	end if	
end if

return li_rc


end function

     
Name Owner
pfc_u_base.of_update pfc_u_base
pfc_u_base.pfc_accepttext pfc_u_base
pfc_u_base.pfc_validation pfc_u_base
pfc_u_base.pfc_updateprep pfc_u_base
pfc_u_base.pfc_updatespending pfc_u_base
pfc_u_base.pfc_update pfc_u_base
pfc_u_base.pfc_postupdate pfc_u_base
pfc_u_base.destructor pfc_u_base

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_luw.of_setrequestor pfc_n_cst_luw

     
Full name
No Data

     
Name Scope
No Data