LabelStyle property: Field class
Description
Use the LabelStyle property to set the style of a label associated with edit boxes, check boxes, drop-down lists, and radio buttons using the style class specified in a custom style sheet attached to a page.
This property is read/write.
Important:
Use this property within classic applications only.
Example
In this code snippet, the style classes — MY_LABELSTYLE1 and MY_LABELSTYLE2 — are sample style classes. You must ensure that your style classes are included in the custom style sheet.
Local Field &field;
&field = GetField();
If MYFIELD = 1 Then;
&field.LabelStyle = "MY_LABELSTYLE1";
End-If;
If MYFIELD = 2 Then;
&field.LabelStyle = "MY_LABELSTYLE2";
End-If;