Delete_Item - DfBaseList
Deletes the specified item from the list if it exists
Type: Procedure
Parameters
| Parameter | Type | Description |
|---|---|---|
| iItem | Integer | The item to be deleted |
Syntax
Procedure Delete_Item Integer iItem
Call Example
Send Delete_Item iItem
Description
Delete_Item is used to delete the specified item from the list if it exists. The screen is automatically updated to reflect the change.
send delete_item 3
get item_count to i
repeat
decrement i
if (value(self, i)) eq "delete_me" send delete_item i
until i le 0
In this example, all items in the current object whose value is delete_me are deleted, leaving all other items in the list unchanged except for their position in the list.