|
of_GetParentWindow
|
|
Full name
|
pfc_u_dw.of_GetParentWindow
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_GetParentWindow(ref window)
|
Name
|
Datatype
|
lpo_parent
|
powerobject
|
public function integer of_GetParentWindow (ref window aw_parent);//////////////////////////////////////////////////////////////////////////////
// Public Function: of_GetParentWindow
// Arguments: aw_parent The Parent window for this object (passed by reference).
// If a parent window is not found, aw_parent is NULL
// Returns: Integer - 1 if it succeeds and -1 if an error occurs
// Description: Calculates the parent window of a window object
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 5.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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.
//////////////////////////////////////////////////////////////////////////////
powerobject lpo_parent
lpo_parent = this.GetParent()
// Loop getting the parent of the object until it is of type window!
do while IsValid (lpo_parent)
if lpo_parent.TypeOf() <> window! then
lpo_parent = lpo_parent.GetParent()
else
exit
end if
loop
if IsNull(lpo_parent) or not IsValid (lpo_parent) then
setnull(aw_parent)
return FAILURE
end if
aw_parent = lpo_parent
return SUCCESS
end function
Name
|
Owner
|
powerobject.getparent |
powerobject
|
powerobject.typeof |
powerobject
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|