|
of_getdataobject
|
|
Full name
|
pfc_n_cst_tvsrv_levelsource.of_getdataobject
|
Access
|
public
|
Extend of
|
string
|
Return value
|
string
|
Prototype
|
public function string of_getdataobject(integer)
|
Name
|
Datatype
|
li_limit
|
integer
|
public function string of_getdataobject (integer ai_level);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetDataObject
//
// Access: Public
//
// Arguments:
// ai_Level The level of the treeview to get the information from.
//
// Returns: string
// string holding the dataobject used by the level
// "!" if error
//
// Description:
// Returns the dataobject used by the datasource to store the data 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
// validate 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_DataObject
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.upperbound |
systemfunctions
|