|
of_copyto
|
|
Full name
|
pfc_n_cst_treenode.of_copyto
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_copyto(ref n_cst_treenode)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_copyto (ref n_cst_treenode anv_copy);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_CopyTo
//
// Access: public
//
// Arguments :
// anv_copy (by reference) copies the contents of the node into this node
//
// Returns: Integer
// 1 : Success
// -1 : Failure, the passed node is invalid
//
// Description:
// Copies the contents of the node into the passed node.
//
// Note:
// If the node is extended MAKE SURE that you OVERRIDE ancestor function.
// Descendant function then should call this function to set known attributes,
// then in descendant add code to copy new elements.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.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
if IsNull(anv_copy) or not isvalid(anv_copy) then return -1
// Copy the standard ancestor attributes.
li_rc = Super::of_CopyTo(anv_copy)
If li_rc <= 0 Then Return li_rc
// Copy the added attribute(s).
anv_copy.of_SetBalance(ii_balance)
return 1
end function