Clear Method - ComboBox

This method clears the contents of the list array.

ComboBox object.Clear()

Client support

   Newlook Smartclient

   Newlook Server

Parameters

None.

Returns

Returns a Boolean indicating the success or failure of the action.

Examples

The following example removes all host generated items from the ComboBox list and adds two custom items.

JSCRIPT

function 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();

}

See Also

List property | AddItem Method | RemoveItem Method

Applies To

ComboBox control


© 2004-2021 looksoftware. All rights reserved.