|
of_setlogicalunitofwork
|
|
Full name
|
pfc_u_tab.of_setlogicalunitofwork
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setlogicalunitofwork(boolean)
|
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