Skip to main content
Version: 20 R7 BETA

ST GET OPTIONS

ST GET OPTIONS ( {* ;} object ; option ; value {; option2 ; value2 ; ... ; optionN ; valueN} )

ParameterTypeDescription
*OperatorIf specified, object is an object name (string)
If omitted, object is a field or variable
objectanyObject name (if * is specified) or
Field or variable (if * is omitted)
optionIntegerOption to get
valueIntegerCurrent value of option

This command is not thread-safe, it cannot be used in preemptive code.

Description

The ST GET OPTIONS command gets the current value of one or more operating options for the styled text field or variable designated by the object parameter.

Passing the optional * parameter indicates that the object parameter is an object name (string). During execution, if the object has the focus, the command returns the information of the object being edited; if the object does not have the focus, the command returns the information of the object’s data source (variable or field).
If you omit the * parameter, it indicates that the object parameter is a field or variable. In this case, you pass a field or variable reference instead of a string. During execution, the command returns the information of the variable or field.

Pass the code of the option to get in the option parameter. The command returns the current value of this option in value. For both these parameters, you can use the following constants, found in the "Multistyle Text" theme:

ConstantTypeValueComment
ST Expressions display modeLongint1The value parameter can contain ST Values or ST References
ST ReferencesLongint1Display source strings of expressions
ST ValuesLongint0Display computed values of expressions

See also

ST SET OPTIONS