Item
Item(iDataSet, iIndex)
Get graph item object
iDataSet | Integer | Dataset |
---|---|---|
iIndex | Integer | Index number for the data point |
Returns result of type OBJECT or SYM
Applies to: Graph
Introduced in KCML version 6.90
Item(iIndex)
Used to access a tree item
iIndex | Integer |
---|
Returns result of type OBJECT or SYM
Applies to: Tree
Introduced in KCML version 5.02
Int The index of the item that is to be modified.
This method is used to provide access to the methods and properties of individual tree items. Items are referenced using the unique index value which is dynamically allocated as each item is added. The index value is returned by the Add() method as each item is added to the tree. For example, the following uses the returns from the Add() method to create a tree with two levels:
First = .treeControl1.Add("First Folder",3) Second = .treeControl1.Item(First).Add("Second Folder", 3) Third = .treeControl1.Item(Second).Add("Item in Second folder",2)
The Index property can be used in conjunction with the Item() method to operate on the currently selected item. For example the following would change the text label of the currently selected item
.treeControl1.Item(.treeControl1.Index).Text$ = "New text"