piPageMaxCombo - cDRReport¶
Methods - Properties - Events
Type¶
Default¶
-1
Arguments¶
None
Description¶
Controls the behavior of the cDRCurrentPageMenuItem object in toolbars. When the property is not set in an object, the cDRCurrentPageMenuItem displays a spinform control. When set, the number of pages in the report determines whether a spinform or a comboform is used. For example, when the property is set to 30 and the number of pages in the report is less than 31, the control uses a comboform to display the available pages. When the number of pages is 31 or higher, the control uses a spinform.
DataFlex Framework usage¶
- Windows
- FlexTron (using Windows views)
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
Set piPageMaxCombo to 50
End_Object
Object oRunReportButton is a Button
Set Label to 'Run Report'
Procedure OnClick
// Opens the report
Send RunReport of oReport
End_Procedure
End_Object