method Editor.InsertItem (Value as Long, Caption as String, [Image as Variant], [Parent as Variant])
Inserts a child item to the editor's list.

 TypeDescription 
   Value as Long A long expression that indicates the value of the item  
   Caption as String A string expression that indicates the caption of the item. The Caption parameter may include built-in HTML tags like explained bellow.  
   Image as Variant A long expression that indicates the index of the icon being displayed.  
   Parent as Variant A long expression that defines the value of the parent item.    
Use the InsertItem to insert child items to the editor's predefined list. Use the AddItem method to add new items to the editor's drop down list. Use the ExpandItem property to expand an item. Use the ExpandAll items to expand all items. Use the ItemTooltip property to assign a tooltip to a predefined item into a drop down editor. Use the RemoveItem method to remove an item.

The following VB sample inserts few items to a drop down list editor:

The following VC sample inserts some items to a drop down list editor:

The Caption parameter may include the following built-in HTML tags:

 

 

 


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.