of_getretrieveargs


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   of_getretrieveargs   

Full name pfc_n_cst_tvsrv_levelsource.of_getretrieveargs
Access public
Extend of string
Return value string
Prototype public function string of_getretrieveargs(integer)

Name Datatype
No Data

Name Datatype
li_limit integer

public function string of_getretrieveargs (integer ai_level);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_GetRetreiveArgs
//
//	Access:		public
//
//	Arguments:
//	ai_Level		The level of the treeview to get the information from.
//
//	Returns:		String
//					string holding the definition of retrieval arguments used by the level
//					"!" if error
//
//	Description:	Get the string defining the retrieval arguments for a level of the TreeView
//
//////////////////////////////////////////////////////////////////////////////
//
//	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

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

// 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 "!"
	
	ai_Level = li_Limit
End If

return inv_attrib[ai_level].is_retrieveargs

end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.upperbound systemfunctions

     
Full name
No Data

     
Name Scope
No Data