int
A signed integer number.
Details
The basic integer type.
Example
int i = -4
Example
open int vehicles{
name = "Vehicles"
descr = "Select the desired vehicle type"
value = 0
options = [0, 1, 2, 3]
options_texts = ["car", "train", "plane", "boat"]
style = "display: dropdown"
}
Casts To
Optional Open Parameter Attributes
- bool readonly
-
Tells the user interface or frontend to disable the setting of the open parameter.
- string style
-
Specifies some limited styling instructions for the user interface or frontend.
- int min
-
An integer number that states that the open parameter value must not be below this value. This is enfored by the system.
- int max
-
An integer number that states that the open parameter value must not be above this value. This is enfored by the system.
- int[] options
-
An array of integer values that defines a selection of allowed values. The user interface or frontend may use a drop-down list to display this open parameter's control. The system enforces that the open parameter value is of the selection options.
- string[] options_texts
-
This attribute requires an options attribute to be present. The options_texts attribute is an array of string values that should ideally have the same length as the options array. Its function is to provide a short name or description for each of the options values. These may be used in the drop-down list by the user interface or frontend.