LISTBOXDELETESTRING

Synopsis
LISTBOXDELETESTRING name index
Description

Deletes the item at index from the listbox that is identified by name.

Listbox items are zero-indexed, which means that the first item in the listbox is at index 0, the second is at index 1, etc.

If there are index items or fewer in the listbox, then the instruction does nothing. This is not considered an error.

Example
WINDOWCREATE "main "mywindow "mytitle 0 0 100 100 []
LISTBOXCREATE "mywindow "mylist 25 0 50 50
LISTBOXADDSTRING "mylist [Triangle]
LISTBOXADDSTRING "mylist [Square]
LISTBOXADDSTRING "mylist [Hexagon]
LISTBOXDELETESTRING "mylist 1
WINDOWDELETE "mywindow

SourceForge.net Logo