|
of_getnextlevel
|
|
Full name
|
pfc_u_tvs.of_getnextlevel
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getnextlevel(long)
|
Name
|
Datatype
|
li_level
|
Integer
|
ltvi_item
|
treeviewitem
|
public function integer of_getnextlevel (long al_parent);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetNextLevel
//
// Access: public
//
// Arguments:
// al_parent The Treeview handle to find the next level for
//
// Returns: Integer
// Returns the datastore level al_parent will populate
//
// Description: determine the datastore level the parent will populate
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_level
treeviewitem ltvi_item
// check the arguments
If (al_parent < 0) or IsNull(al_parent) Then Return -1
// determine the datastore level the parent will populate
If al_parent <> 0 Then
If this.GetItem(al_parent, ltvi_item) <> 1 Then Return -1
li_level = ltvi_item.level + 1
Else
li_level = 1
End If
Return li_level
end function
Name
|
Owner
|
treeview.getitem |
treeview
|
systemfunctions.isnull |
systemfunctions
|