Removes the specified item item from the list array (list box or combo box control).
object.RemoveItem(Index)
Newlook Smartclient
Newlook Server
Index - (Integer, Optional)
The index of the item within the list to be removed. If this value is zero the first item will be deleted.
This method returns a boolean value indicating the success of the method.
Use the App.RefreshForm method to update the contents of the List box control or combo box control after this method has been called.
The following example will remove the last item from a combo box list. JSCRIPT//Get index of last item in list LastItemIndex = App.ActiveForm.Controls.ComboBox.ListCount - 1;
//Remove last item RemoveSuccess = App.ActiveForm.Controls.ComboBox.RemoveItem(LastItemIndex);
//Refresh list App.RefreshForm(); |
AddItem method | Clear method - ComboBox | Clear method - List Box | NewIndex property
© 2004-2021 looksoftware. All rights reserved.