Skip to content

OnPageChanged - cDRReport

Methods - Properties - Events

Method Type

Procedure (event)

Arguments

Argument Description
iPage The current report page number.

Description

This event is sent by the object whenever a report page changes. The page number can be displayed in a control in the report view, or browse page buttons could be enabled/disabled based on this value.

By default, this event - when used in a Windows program - sends a OnPageChange message (with the same parameters) to the previewer object whose handle is in phoPreviewContainer

DataFlex Framework usage

  • Windows
  • FlexTron (using Windows previewer)

Sample

Object oReport is a cDRReport
    Set psReportName to 'MyReport.dr'

    Procedure OnPageChanged Integer iPage
        Set Value Of oCurrentPageForm To iPage
    End_Procedure
End_Object