of_setmaster


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_setmaster   

Full name pfc_n_cst_dwsrv_linkage.of_setmaster
Access public
Extend of integer
Return value integer
Prototype public function integer of_setmaster(u_dw)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setmaster (u_dw adw_master);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetMaster
//
//	Access:    		Public
//
//	Arguments:
//   adw_master:	The master datawindow reference
//
//	Returns:   		Integer
//						1 if it succeeds and -1 if an error occurs.
//
//	Description:  Links the detail datawindow to the master.  Sets its master variable
//					  reference, then calls 'of_LinkDetail' on the master.
//
//	   *Note: This function should only be called from subordinate datawindows.
//	
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version - Replaces obsoleted function of_LinkTo(...)
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Attempt to link the master datawindow. 
If IsValid ( adw_master ) Then 
 	If IsValid ( adw_master.inv_Linkage ) Then 
		If adw_master.inv_Linkage.of_LinkDetail ( idw_Requestor ) = 1 Then 
			// Link the master datawindow.
			idw_master = adw_master
			Return 1
		End If 
	End If 
End If

// No linkage was peformed.
Return -1
end function

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_linkto pfc_n_cst_dwsrv_linkage

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_cst_dwsrv_linkage.of_linkdetail pfc_n_cst_dwsrv_linkage

     
Full name
No Data

     
Name Scope
No Data