|
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)
|
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