ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / Reserved keywords
  • Handling the current report
  • Using MyReport in a procedure
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
MyReport (Reserved word)
In french: MonEtat
MyReport is used to handle the current report. During the execution of the project, MyReport is replaced with the report (and not by the name of the report). Then, MyReport is used like a report.
Advantage: MyReport is used to make a local code (control, item, ...) or a global code (global procedure, class, ...) independent of the current report.
Example
// Retrieve the name of the current report
ReportName = MyReport.Name
Syntax
MyReport
Remarks

Handling the current report

  • MyReport is always replaced with the current report. For example:
    Using a property (BottomMargin for example):
    MyReport.BottomMargin = 15
    ResMargin = MyReport.BottomMargin

    Code for passing as parameter:
    CallProcedure(MyReport)
  • MyReport can only be used in the processes that handle the current report (processes associated with a control, an item, ...). MyReport cannot be used in a window.

Using MyReport in a procedure

MyReport can be used in a local or global procedure only if the procedure handles the current report. In this case, MyReport refers to the current report.
With a local procedure, MyReport corresponds to the report to which the procedure belongs.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help