Skip to content

ClearGadgetItems

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

ClearGadgetItems

ClearGadgetItems:Void gadget:Int32
Parameter Mode Type Default Description
gadget In Int32 required Handle of a list box, combo box or tabber.

Description

Removes every entry of a list box, combo box or tabber.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Clear", 10, 10, 300, 200, Desktop(), 3)
list = CreateListBox(10, 10, 200, 100, win)
AddGadgetItem list, "One"
AddGadgetItem list, "Two"
ClearGadgetItems list
SetGadgetText win, "Items: " + CountGadgetItems(list)
Repeat
Until WaitEvent() = $803

Related Commands

ActivateGadget, AddGadgetItem, CountGadgetItems, DisableGadget, EnableGadget, FreeGadget, GadgetFont, GadgetGroup

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally