of_findroot


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   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
No Data

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

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_findroot pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_refresh pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_save pfc_n_cst_dwsrv_linkage
pfc_u_tabpg_dwproperty_srvlinkage.pfc_propertypopulate pfc_u_tabpg_dwproperty_srvlinkage

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_findroot pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_isroot pfc_n_cst_dwsrv_linkage

     
Full name
No Data

     
Name Scope
No Data