of_getparentwindow


pfcmain.pbl   >   pfc_n_ds   >   of_getparentwindow   

Full name pfc_n_ds.of_getparentwindow
Access public
Extend of integer
Return value integer
Prototype public function integer of_getparentwindow(ref window)

Name Datatype
No Data

Name Datatype
lw_notvalid window

public function integer of_getparentwindow (ref window aw_parent);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_GetParentWindow
//
//	Access:  public
//
//	Arguments:
//	aw_parent   The Parent window for this Dynamically created object. (by reference)
//
//	Returns:  integer
//	 1 = success
//	-1 = error
//
//	Description:	Gets the Parent window for this Dynamically created object.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

window lw_notvalid

// Check if the parentwindow reference is still valid.
If IsValid(iw_parentwindow) Then
	// Return the parent window.
	aw_parent = iw_parentwindow
	Return 1
End If

// There is no valid parent to return.
If IsValid(gnv_app.inv_debug) Then				
	of_MessageBox ("pfc_getparentwindow_debug", "PowerBuilder Class Library", &
		"For certain functionality the " + &
		"PFC DataStore requires a reference to its parent window. " + &
		"One of these cases has been encountered.  To let the Datastore "+&
		"know who its parent window call the of_SetParentWindow(...) "+&
		"function after the DataStore creation.", &
		Exclamation!, Ok!, 1)
End If

aw_parent = lw_notvalid
Return -1
end function

     
Name Owner
pfc_n_cst_dssrv_report.of_gettextsizepos pfc_n_cst_dssrv_report
pfc_n_cst_dssrv_report.of_getpicturesize pfc_n_cst_dssrv_report
pfc_n_ds.of_checkrequired pfc_n_ds
pfc_n_ds.pfc_printdlg pfc_n_ds
pfc_n_ds.pfc_accepttext pfc_n_ds
pfc_n_ds.dberror pfc_n_ds

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_ds.of_messagebox pfc_n_ds

     
Full name
demopfc

     
Name Scope
No Data