of_copyto


pfcmain.pbl   >   pfc_n_tr   >   of_copyto   

Full name pfc_n_tr.of_copyto
Access public
Extend of integer
Return value integer
Prototype public function integer of_copyto(n_tr)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_copyto (n_tr atr_target);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_CopyTo
//	Arguments:		atr_target  target transaction object passed by reference.
//	Returns:			Integer
//	 					1 = success
//						-1 = error
//	Description:	Copy the contents of this object to the transaction object passed in.
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						5.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	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.
//////////////////////////////////////////////////////////////////////////////
// Check arguments
if IsNull(atr_target) Or not IsValid (atr_target) then return -1

// Copy the system transaction values
atr_target.DBMS = this.DBMS
atr_target.Database = this.Database
atr_target.LogID = this.LogID
atr_target.LogPass = this.LogPass
atr_target.ServerName = this.ServerName
atr_target.UserID = this.UserID
atr_target.DBPass = this.DBPass
atr_target.Lock = this.Lock
atr_target.DbParm = this.DbParm
atr_target.Autocommit = this.Autocommit
atr_target.sqlcode = this.sqlcode
atr_target.sqldbcode = this.sqldbcode
atr_target.sqlnrows = this.sqlnrows
atr_target.sqlerrtext = this.sqlerrtext
atr_target.sqlreturndata = this.sqlreturndata

// Copy the pfc transaction properties
atr_target.of_SetAutoRollBack (ib_AutoRollBack)
atr_target.of_SetTrace (ib_Trace)
atr_target.of_SetName (is_Name)

return 1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_tr.of_SetTrace pfc_n_tr
pfc_n_tr.of_SetName pfc_n_tr
pfc_n_tr.of_SetAutoRollBack pfc_n_tr

     
Full name
No Data

     
Name Scope
No Data