of_islinked


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_islinked   

Full name pfc_n_cst_dwsrv_linkage.of_islinked
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_islinked()

Name Datatype
No Data

Name Datatype
li_i Integer
li_numdetails Integer

public function boolean of_islinked ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_IsLinked
//
//	Access:    		Public
//
//	Arguments: 		None
//
//	Returns:   		Boolean
//   					TRUE: The datawindow participates in a linked chain
//	 					FALSE: The datawindow does not participate in a linked chain
//
//	Description:  	This function will determine if the requesting datawindow is 
//               	linked.
//
//	   *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_numdetails
Integer	li_i

If of_IsRoot ( ) Then 
	// This is a root datawindow, check if it is linked to any details.
	li_numdetails = UpperBound ( idw_details ) 
	For li_i = 1 to li_numdetails 
		If IsValid ( idw_details[li_i] ) Then Return True
	Next 
Else
	// This dw is at least linked to a root datawindow.
	Return True
End If 

// Datawindow is not linked to either a master or a detail datawindow.
Return False
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions
systemfunctions.upperbound systemfunctions
pfc_n_cst_dwsrv_linkage.of_isroot pfc_n_cst_dwsrv_linkage

     
Full name
No Data

     
Name Scope
No Data