of_getlevelattributes


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   of_getlevelattributes   

Full name pfc_n_cst_tvsrv_levelsource.of_getlevelattributes
Access public
Extend of integer
Return value integer
Prototype public function integer of_getlevelattributes(integer,ref n_cst_tvsrvattrib)

Name Datatype
No Data

Name Datatype
li_limit integer
lnv_emptyattrib n_cst_tvsrvattrib

public function integer of_getlevelattributes (integer ai_level, ref n_cst_tvsrvattrib anv_attrib);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_GetLeveLAttributes
//
//	Access:		Public
//
//	Arguments:	
//	ai_Level		The level of the treeview to get the information from.
//	anv_attrib	The attributes object containing the attributes for the level
//
//	Returns:		Integer
//
//	Description:
//	Returns all the attributes used to populate the datasource for the level
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////
integer					li_limit
n_cst_tvsrvattrib		lnv_emptyattrib

// check arguments
If isNull(ai_level) or (ai_level < 1) Then Return -1

// Verify that this is a valid level
li_Limit = UpperBound(inv_attrib)
If ai_Level > li_Limit Then
	// Allow for recursion
	If Not inv_attrib[li_Limit].ib_Recursive Then Return -1
	
	ai_Level = li_Limit
End If

anv_attrib = lnv_emptyattrib
anv_attrib = inv_attrib[ai_level]

return 1

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.upperbound systemfunctions

     
Full name
No Data

     
Name Scope
No Data