|
of_copyto
|
|
Full name
|
pfc_n_msg.of_copyto
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_copyto(n_msg)
|
public function integer of_copyto (n_msg am_target);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_CopyTo
//
// Access: public
//
// Arguments:
// am_target target message object passed by reference.
//
// Returns: Integer
// 1 = success
// -1 = error
//
// Description:
// Copy the contents of this object to the message object passed in.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0.01 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.
//
//////////////////////////////////////////////////////////////////////////////
// Check arguments
if IsNull(am_target) Or not IsValid (am_target) then
return -1
end if
// Copy the system transaction values
am_target.Handle = this.Handle
am_target.Number = this.Number
am_target.WordParm = this.WordParm
am_target.LongParm = this.LongParm
am_target.DoubleParm = this.DoubleParm
am_target.StringParm = this.StringParm
am_target.PowerObjectParm = this.PowerObjectParm
am_target.Processed = this.Processed
am_target.ReturnValue = this.ReturnValue
// Copy the pfc transaction properties
am_target.of_SetPowerObjectParm (ipo_parm)
am_target.of_SetStringParm (is_parm)
am_target.of_SetDoubleParm (idbl_parm)
return 1
end function