# Variable List Box Control

> Source: https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/variable-list-box

A *Variable List Box* control is similar to a **[Standard](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/list-box-type#standard)** List Box control but with the added capability of allowing variable input. This means that users can either select from the List Box or manually enter a different value not in the list.

|  |  |
| --- | --- |
| ![](https://manual.pvxplus.com/migration-assets/3ef586161f23d69f7fc766a3df2c407bd08389bcef8c63dbfce95caee7dce59a.png) | The *Variable* List Box control on the left displays a list of predefined items. Rather than selecting from the list, a different value (*bird*) has been manually entered.  <br>  <br>If the number of items in the list overflows the size of the List Box, a vertical scrollbar is automatically displayed.  <br>  <br>A **[List Box Data Class](https://manual.pvxplus.com/data-dictionary/data-classes/listbox)** can also be applied to a Variable List Box control. |

## Creating a Variable List Box

Below are the steps to create a Variable List Box:

|  |  |  |
| --- | --- | --- |
|  | 1\. | To draw a new List Box control, select the List Box control tool from the **[Controls Toolbar](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/drawing-and-modifying-panel-objects/controls-toolbox)**. Hold down the left mouse button and drag the mouse to create a rectangle to the desired size. Release the mouse button to create the new object. The **[List Box Properties](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/list-box-type#properties)** dialogue is also displayed. |
|  | 2\. | To make this a ***Variable List Box***, the **[List Box Type](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/list-box-type#display)** (on **Display** tab) must be set to *Standard*. To allow users to input their own values, select the **[Allow Variable Input](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/list-box-type#display)** attribute (on **Attributes** tab). An **[Input Length](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/list-box-type#display)** can be optionally specified (on **Display** tab). |
|  | 3\. | Define other attributes for this control as needed. |

Note:  
A List Box control can also be created from a *data class* or a data dictionary *element*. See [Data Class Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/introduction#Mark4) and [Data Element Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/introduction#Mark5).

For a list of properties that can be applied to a ***Variable List Box***, see **[VARLIST_BOX Properties](https://manual.pvxplus.com/control-object-properties/varlistbox-properties)**.

## See Also

**[Dynamic Control Properties](https://manual.pvxplus.com/data-dictionary/data-classes/dynamic)**  
**[VARLIST_BOX Directive](https://manual.pvxplus.com/directives/varlist-box#Mark3)**
