of_getancestorclasses


pfcapsrv.pbl   >   pfc_n_cst_metaclass   >   of_getancestorclasses   

Full name pfc_n_cst_metaclass.of_getancestorclasses
Access public
Extend of integer
Return value integer
Prototype public function integer of_getancestorclasses(string,ref classdefinition[])

Name Datatype
No Data

Name Datatype
lcd_object classdefinition

public function integer of_getancestorclasses (string as_sourceclass, ref classdefinition acd_ancestorclass[]);//////////////////////////////////////////////////////////////////////////////
//
//	Function:
//	of_getAncestorClasses
//
//	Access:
//	public
//
//	Arguments:
//	as_sourceclass		classname to get ancestor classes for
//	acd_ancestorclass[]	ancestor classesdefinitions by reference
//
//	Returns:
//	integer
//	Returns the number of ancestor classes
//	Returns -1 if there is an error
//
//	Description:
//	Gets all ancestor classdefinitions of a given classname.
//	Classes are returned in ascending order (subclass to ancestor class)
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

classdefinition	lcd_object

// Find sourceclass
lcd_object = findClassDefinition (as_sourceclass)

return of_getAncestorClasses (lcd_object, acd_ancestorclass[])
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.findclassdefinition systemfunctions
pfc_n_cst_metaclass.of_getancestorclasses pfc_n_cst_metaclass

     
Full name
No Data

     
Name Scope
No Data