|
of_findroot
|
|
Full name
|
pfc_n_cst_dwsrv_linkage.of_findroot
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_findroot(ref u_dw)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_findroot (ref u_dw adw_root);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_FindRoot
//
// Access: Public
//
// Arguments:
// adw_root: The root datawindow reference returned
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
//
// Description: Searches the Datawindow chain for the top-most,
// or root, datawindow.
//
// *Note: Can be called from any datawindow in the linked chain.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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=-1
// Is the requesting datawindow the root?
If of_IsRoot ( ) Then
adw_root = idw_Requestor
Return 1
End If
// Call this function on this datawindow's master.
li_rc = idw_master.inv_Linkage.of_FindRoot ( adw_root )
Return li_rc
end function