treectrl.itemData Property
data = treectrl.itemData(item, parent);
treectrl.itemData(item, parent) = data;
Sets/retrieves the user data associated with the specified item.
Parameters
- item
-
Required. Either an integer specifying the item handle (in which
case the parent is ignored) or a string specifying the item text. The string
may contain a regular expression.
- parent
-
Optional. Integer specifying the parent under which to search for the item.
Default value is 0, meaning that items specified by text are searched in
the whole tree control.
Example
treectrl.itemData("New item") = 12345;
if (treectrl.itemData("New item") != 12345)
Env.LogError("Could not change tree item data");
See also
treectrl Overview |
treectrl.item
 
© 2003 Lightweight Technologies. All rights reserved.