Home > Language Reference > Classes > ChoiceControl

Clear Method

Deletes all the items in a list.

Syntax

Public Sub Clear()

Remarks

The Clear method deletes all the items in the list displayed by the control. After calling this method, the ListIndex and NewIndex properties both return the value -1. If the value of the Redraw property is True, the display is updated immediately.

You can delete an individual item using the RemoveItem method.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A