property Editor.FindItem (Value as Variant) as Variant
Finds an item given its value or caption.

 TypeDescription 
   Value as Variant A long expression that indicates the value of the item being searched, a string expression that indicates the caption of the item being searched.   
   Variant A string expression that indicates the caption of the item, if the Value is a long expression, a long expression that indicates the item's value if Value is a string expression.  

The FindItem property retrieves an empty ( VT_EMPTY ) value if no item was found. Use the FindItem property to search the caption of the predefined value, in case the Value parameter is a long expression, or look for the predefined value when the Value parameter is a string expression. Use the AddItem method to add predefined values. Use the InsertItem method to add predefined values as child items.


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.