Deleting a line from a listboxΒΆ

listbox_delete()

Delete a line from a listbox


SYNTAX

listbox_delete (listbox_id, line)

Deletes the line with the specified line number from the list. All higher numbered lines are renumbered one lower. If the line number is higher than the existing number of lines, no action is taken. Line numbers start from 1.

If the listbox type is LIST_BUTTON or LIST_EDIT, and the deleted line is the current selection, the value is also cleared from the button/textbox.

This function always returns 0.


RELATED TOPICS

Listboxes

Listbox and table functions

Listbox type