Making a report detail line bold only when a condition is met (PROP:FONTSTYLE and SETFONT have no effect)

Applies to: a report in an app using the ABC embeds named in the thread (Process Manager and Window Manager method embeds); posted in the Clarion 5.5 EE group.

Problem

A report has three fields, one of which holds '**' when a condition is met and is blank otherwise. The poster wants the whole DETAIL band bold when that field is not blank and regular otherwise. Setting PROP:FONTSTYLE and calling SETFONT() in the ProcessManager ValidateRecord embed changed nothing.

Solution

  1. Call SETTARGET(Report) before changing the property. Without it the property is not applied to the report's controls.
  2. Call SETTARGET only after the report is open. When the poster tried it earlier he got the run-time message "Window not open, do you want to GPF".
  3. Set the font style on each control you want bold. Giving the detail band a bold style does not make the controls on it bold.

Caveats

  • The poster did not report back after the last reply, so the result is not confirmed in the thread.
  • The poster planned to try the WindowManager TakeRecord embed; the thread does not say which embed finally worked.
  • The replies do not name the embed where SETTARGET should be placed, only that it must come after the report opens.

Today (2026)

Likely unchanged: the target rule and the per-control font rule are properties of report controls. Not re-tested on a current build.

Sources: Wayne H. (Aug 2001, the question), Bob C. (Aug 2001), Marius L. (Aug 2001), Maarten (Aug 2001) in softvelocity.products.c55ee.