|
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
|
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