i = valueset_name.add(label, from_codeʃ, to_code ‖ special_valueʅ
ʃ, image := image_filenameʅ
ʃ, textColor := colorʅ);
In the first version, you provide a string expression
label and either a numeric or string expression
from_code, which must match the type of the value set. For numeric value sets, it is possible to specify a numeric expression
to_code, which creates a range, or a
special_value, which is then associated with the
from_code. Using
named arguments, you can provide a string expression,
image_filename, to specify the filename of an image to be shown as a
value set image. You can also specify the text color of the value by providing a string expression
color that contains a HTML color name (like
"red") or a hex color code (like
"#ff0000").