To suppress a report zone with no content

  1. In a report definition, create a zone containing the attribute that could be suppressed, for example COMMENT.
  2. Select the section and click Add menu > Zone.
  3. Add the attribute to be printed, such as COMMENT.
  4. Define the condition for the zone to be suppressed. For example, suppress the zone if the attribute COMMENT is empty.
  5. Click Add menu > Function > Manage.
  6. Add a new function IsEmpty.
    dim columnName as string
    columnName = Me.FunctionParameters.Item(0)
    return Me.Record.IsDBNull(columnName)
  7. Select the zone. Under Suppress, enter the condition
    {Fun.IsEmpty("COMMENT ")}