company logo

Value :: replaceOptions - Replace option variables

The function allows replacing option variables referenced in a text value. When calling the function, option variables (e.g. "...%Option1% ....") will be replaced by the text currently set for the option variable (in a configuration or ini-file or by calling setOption()). Option variables not set are replaced by empty strings. Options might also be passed as option path (%data.database%

When no instance is selected in the value handle or the value is not a text property, the function throws an exception.

Implementation details

Value  :: replaceOptions (  )

The result contains all resolved option variables. Undefined option references are removed.