This method clears the contents of the list array.
ComboBox object.Clear()
Newlook Smartclient
Newlook Server
None.
Returns a Boolean indicating the success or failure of the action.
The following example removes all host generated items from the ComboBox list and adds two custom items. JSCRIPTfunction UpdateList() { //Clear current items from the ComboBox App.ActiveForm.Controls.ComboBoxControl.Clear();
//Add new items to list App.ActiveForm.Controls.ComboBoxControl.Additem("WRKACTJOB",0); App.ActiveForm.Controls.ComboBoxControl.Additem("WRKSPFL",1);
//Refresh list App.RefreshForm(); } |
List property | AddItem Method | RemoveItem Method
© 2004-2021 looksoftware. All rights reserved.