Previous in Contents Next in Contents

SimpleList.Delete Method

The Delete method deletes an item, specified by Index, from the SimpleList object.

Syntax

SimpleList.Delete(Index)

Parameters

Index
The zero-relative position of the item in the SimpleList to delete.

Example

In the following example (from Clocktower's xt_orderform_delitem.asp file), the Delete method deletes an item from the customer's order form. The index argument is passed to the xt_orderform_delitem.asp page by the Basket.asp page when the customer clicks the Remove item button:

orderForm.Items.Delete(index)

© 1997-2000 Microsoft Corporation. All rights reserved.