Vizard 7 » Command Index » Vizard objects » node3d » <node3d:GUI:droplist>.removeItem
7.7

<node3d:GUI:droplist>.removeItem

Removes the item from the desired index.

<node3d:GUI:droplist>.removeItem(  
index  
)  
index
Zero-based index of the item to remove.

Remarks

This command will remove the item at the selected index. If the item is currently selected, then the first item will become selected.

Return Value

None

Example

list = viz.addDropList()
list.setPosition(.5,.5)
list.addItem('B')
list.addItem('C')
list.addItem('A',0) #Insert's A at the 0 index (top)
list.addItem('D')
list.removeItem(0) #Removes 'A' as it is in index 0