UPDATEFONTBOLD Function (Control)

Microsoft Dynamics Nav 2009

Dynamically changes the setting of the FontBold Property property of a control.


UPDATEFONTBOLD(FontBold)

Parameters

FontBold

Type: Boolean

Possible values are true and false. If the value is true, then the control will be shown in bold. If the value is false, then the control will not be shown in bold.

This function is not supported in the RoleTailored client.

This function can only be called from the OnFormat Trigger trigger of the control. The property will only be changed temporarily, that is, for the duration of this form.

The intended use of this function is to display controls of selected records in a tabular form by using the bold font. If a repeated control in a table box has the FontBold Property property set to yes, then all rows will be using the bold font. Using this function, you can select individual records where the bold font should be used, based on, for example, the current value of another field, like in the following code example.

IF Type = Type::Heading THEN
  CurrForm.Name.UPDATEFONTBOLD(TRUE);

Community Additions

ADD
Show: