ListBox.RemoveItem Method (Outlook Forms Script)
Removes a row from the list in a ListBox.
Syntax
expression .RemoveItem(pvargIndex)
expression A variable that represents a ListBox object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
pvargIndex |
Required |
Variant |
Specifies the row to delete. The number of the first row is 0; the number of the second row is 1, and so on. |
Return Value
A Boolean that returns True if the method succeeds, False otherwise.
Remarks
This method will not remove a row from the list if the ListBox is data bound.