ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Various properties
  • Bounds for a report based on a data file
  • Limits for a report
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The MaxValue property is used to:
  • get and set the top value of a report based on a data file. The top value is the maximum value allowed for the search key of the HFSQL data file the report is based on.
  • get the maximum value of the current filter (set by HFilter) on an HFSQL data file, view or query.
  • get the maximum value of a data series in a chart.
  • get and set the maximum value for some types of controls.
Example
Reports and Queries
// Print customers between "DUPONT" and "DURANT"
RPT_MyFileReport.MinValue = "DUPONT"
RPT_MyFileReport.MaxValue = "DURANT"
Syntax

Getting the maximum value of a control or report Hide the details

<Current value> = <Element used>.MaxValue
<Current value>: Character string
Current maximum value:
  • of the report based on a data file.
  • of a control in a window or page.
<Element used>: Control or report name
This parameter corresponds to:
  • the name of the report used (report based on a data file).
  • the name of the control for which you want to get the maximum value (control in a window or page). The list of the controls that can be manipulated is in the "Limitations" paragraph.

Changing the maximum value of a control or report Hide the details

<Element used>.MaxValue = <New value>
<Element used>: Control or report name
This parameter corresponds to:
  • the name of the report used (report based on a data file).
  • the name of the control for which you want to change the maximum value (control in a window or page).
<New value>: Integer
New maximum value:
  • of the report based on a data file.
  • of the window control. The list of the controls that can be manipulated is in the "Limitations" paragraph.
Reports and Queries

Getting the maximum value of the current filter Hide the details

<Current value> = <Element used>.MaxValue
<Current value>: : Type of filter used
  • Current maximum value of the filter applied on the specified element. This filter is defined with the HFilter function.
  • Empty string ("") in the following cases:
    • no filter was defined for the specified element.
    • the filter is disabled.
    • no maximum value was specified for the filter.
<Element used>: Character string
Name of the data file, query or view used.
Reports and Queries

Getting the maximum value of a data series in a chart Hide the details

<Maximum value> = <Series>.MaxValue
<Maximum value>: Integer
Maximum value of the data series. This value only exists if it has been calculated (for example, if the series has been drawn).
<Series>: Character string
Series to use. Use the following syntax: <Chart name>[<Series number>].
Remarks

Bounds for a report based on a data file

Bounds select only those records whose search key is between the bottom value (returned by the MinValue property) and the top value (returned by the MaxValue property).

Limits for a report

The MaxValue property can only be used on reports based on HFSQL data files. When creating the report, you need to specify that the search is bounded by the maximum value.

Limitations

Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/29/2024

Send a report | Local help