4D v16.3

ST GET OPTIONS

Home

 
4D v16.3
ST GET OPTIONS

ST GET OPTIONS 


 

ST GET OPTIONS ( {* ;} object ; option ; value {; option2 ; value2 ; ... ; optionN ; valueN} ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a field or variable
object  Form object in Object name (if * is specified) or Field or variable (if * is omitted)
option  Longint in Option to get
value  Longint in Current value of option

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:

Constant Type Value Comment
ST Expressions display mode Longint 1 The value parameter can contain ST Values or ST References
ST References Longint 1 Display source strings of expressions
ST Values Longint 0 Display computed values of expressions



See also 

ST SET OPTIONS

 
PROPERTIES 

Product: 4D
Theme: Styled Text
Number: 1290

 
HISTORY 

Created: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)