of_settransobject


pfcmain.pbl   >   pfc_n_ds   >   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
No Data

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
pfc_n_cst_security.of_initsecurity pfc_n_cst_security
pfc_n_cst_tvsrv_levelsource.of_register pfc_n_cst_tvsrv_levelsource
pfc_n_cst_lvsrv_datasource.of_Register pfc_n_cst_lvsrv_datasource
pfc_n_cst_dwcache.of_register pfc_n_cst_dwcache
pfc_u_lv.of_setdatasource pfc_u_lv
pfc_u_tv.of_initialretrieve pfc_u_tv
pfc_u_tv.of_setdatasource pfc_u_tv
pfc_u_tv.of_populatelevel pfc_u_tv

     
Name Owner
datastore.settransobject datastore
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data