Complete the following steps to create a listbox.
A listbox with a selection mode set to 0 or 1, or 1 appears on the block diagram as a 32-bit signed integer. The data value for a single-selection listbox is a number that represents the currently selected option. The first item in the list has a value of zero. If no item is selected, the value is 1. Select a case from a Case structure (conditional code) that carries out the selected item.
A listbox with a selection mode set to 0 or more items, or 1 or more items appears on the block diagram as an array of 32-bit signed integers, where the value(s) in the array represent the currently selected item(s).
Use the Property Node of the listbox control to modify list items and to gather information about list items in the following ways: