|
of_copyto
|
|
Full name
|
pfc_n_cst_nodebase.of_copyto
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_copyto(ref n_cst_nodebase)
|
public function integer of_copyto (ref n_cst_nodebase 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.
//
//////////////////////////////////////////////////////////////////////////////
if IsNull(anv_copy) or not isvalid(anv_copy) then return -1
anv_copy.of_SetKey(ia_key)
anv_copy.of_SetData(ia_data)
anv_copy.of_SetNext(inv_next)
anv_copy.of_SetPrev(inv_prev)
return 1
end function