|
of_getparentwindow
|
|
Full name
|
pfc_u_vtb.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);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetParentWindow
//
// Access: public
//
// 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 = success
// -1 = error
//
// Description: Calculates the parent window of a window object
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 7.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.
//
//////////////////////////////////////////////////////////////////////////////
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 -1
end If
aw_parent = lpo_parent
return 1
end function
Name
|
Owner
|
powerobject.getparent |
powerobject
|
powerobject.typeof |
powerobject
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|