4D v13.4

OBJECT Get font style

Home

 
4D v13.4
OBJECT Get font style

OBJECT Get font style 


 

OBJECT Get font style ( * ; object ) -> Function result 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable or a field
object  Form object in Object name (if * is specified) or Variable or field (if * is omitted)
Function result  Longint in Font style

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:

Constant Type Value
Plain Longint 0
Bold Longint 1
Italic Longint 2
Underline Longint 4

 
PROPERTIES 

Product: 4D
Theme: Object Properties
Number: 1071

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v12

 
SEE ALSO 

OBJECT SET FONT STYLE