OBJECT SET FONT displays the object using the font specified in the font parameter. The font parameter must contain a valid font name.
If you specify the optional * parameter, you indicate an object name (a string) in object. If you omit the optional * parameter, you indicate a field or a variable in object. In this case, you specify a field or variable reference (field or variable objects only) instead of a string.
The following example sets the font for a button named bOK:
OBJECT SET FONT(bOK;"Arial")
The following example sets the font for all the form objects whose name contains "info":
OBJECT SET FONT(*;"@info@";"Times")
The following example uses the special %password option, designed for entry and display of “password” type fields. When you pass "%password" in the font parameter:
- every character entered in the object is displayed with the same symbol,
- "copy" and "cut" actions are disabled in the object.
Note: You can use the %password option with field, variable and combo box type objects.
OBJECT SET FONT([Users]Password;"%password")