Unicode Controls & Classes for VB6 - Version 4

ctlUniListBoxExXP.AddItem Function

Adds a new item to the listbox, return the index

Syntax
Public Function AddItem (ByVal s As String, _
Optional ByVal Index As Long = -1, _
Optional ByVal vItemTag As Variant = "", _
Optional ByVal bItemChecked As Boolean = False) As Long
Parameters
Parameter Description
ByVal s As String The new item text
Optional ByVal Index As Long = -1 The new index, leave -1& to add to the end of the list
Optional ByVal vItemTag As Variant = "" The item tag
Optional ByVal bItemChecked As Boolean = False Is the new item checked?
Remarks