|
of_settransobject
|
|
Full name
|
pfc_n_ds.of_settransobject
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_settransobject(n_tr)
|
Name
|
Datatype
|
li_rc
|
integer
|
public function integer of_settransobject (n_tr atr_object);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetTransObject
//
// Access: public
//
// Arguments:
// atr_object: transaction object to set for the datastore
//
// Returns: integer
// 1 = success
// -1 = error
//
// Description:
// Sets the transaction object that the datastore will use
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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 (atr_object) or not IsValid (atr_object) then
return -1
end if
// Set the transaction object
li_rc = this.SetTransObject (atr_object)
if li_rc = 1 then
itr_object = atr_object
end if
return li_rc
end function
Name
|
Owner
|
datastore.settransobject |
datastore
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|