Removes an item from a list box or combo box by its index.
Takes gizmo (Int) and index (Int).
Returns 1 or 0 if LB_ERR.
BGI GUI
Parameters & Returns
Parameters
gizmoInt
indexInt
Returns
Int
Quick Summary
Removes an item from a list box or combo box by its index.
Takes gizmo (Int) and index (Int).
Returns 1 or 0 if LB_ERR.
Technical Exegesis...
Removes an item from a list box or combo box by its 0-based index. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_DELETESTRING with index, returns 1 or 0 if LB_ERR. For GIZMO_COMBOBOX, sends CB_DELETESTRING with index, returns 1 or 0 if LB_ERR (note: uses LB_ERR constant for CB check). Returns 0 if gizmo not found or unsupported gizmo type.
This function deletes a single item from the list or combo box. index is 0-based position (0 = first item, 1 = second item, etc.).
Removes an item from a list box or combo box by its 0-based index. Searches gizmoMap for the gizmo ID. For GIZMO_LISTBOX, sends LB_DELETESTRING with index, returns 1 or 0 if LB_ERR. For GIZMO_COMBOBOX, sends CB_DELETESTRING with index, returns 1 or 0 if LB_ERR (note: uses LB_ERR constant for CB check). Returns 0 if gizmo not found or unsupported gizmo type.
This function deletes a single item from the list or combo box. index is 0-based position (0 = first item, 1 = second item, etc.). After removal, items at higher indices shift up by one (index 2 becomes index 1, index 3 becomes index 2, etc.). Works with both GIZMO_LISTBOX and GIZMO_COMBOBOX types. Use for deleting selections, removing invalid entries, or dynamic list management. Returns 0 for invalid indices (LB_ERR/CB_ERR).