Skip to main content
Version: 20 R7 BETA

OBJECT Get font style

OBJECT Get font style ( * ; object ) : Integer

ParameterTypeDescription
*OperatorIf specified, object is an object name (string)
If omitted, object is a variable or a field
objectanyObject name (if * is specified) or
Variable or field (if * is omitted)
Function resultIntegerFont style

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

Description

The OBJECT Get font style command returns the current style of the character font used by the form object(s) designated by object.

If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a field or a variable. In this case, you pass a field or variable reference (object field or variable only) instead of a string.

You can compare the value returned with the value of one or more of the following predefined constants, placed in the "Font Styles" theme:

ConstantTypeValue
PlainInteger0
BoldInteger1
ItalicInteger2
UnderlineInteger4

See also

OBJECT SET FONT STYLE