|
of_setparent
|
|
Full name
|
pfc_m_dw.of_setparent
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setparent(datawindow)
|
Name
|
Datatype
|
li_rc
|
integer
|
public function integer of_setparent (datawindow adw_parent);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetParent
//
// Access: public
//
// Arguments:
// adw_parent parent object of the menu
//
// Returns: integer
// 1 = success
// -1 = failure, parent reference is not valid
//
// Description: Sets the parent object of this menu
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc = 1
if IsValid (adw_parent) then
idw_parent = adw_parent
else
li_rc = -1
end if
return li_rc
end function
Name
|
Owner
|
systemfunctions.isvalid |
systemfunctions
|