ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / Reserved keywords
  • Handling the current report
  • Using MyReport in a procedure
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
MyReport (Reserved word)
In french: MonEtat
MyReport is used to handle the current report. When the project is run, the MyReport keyword is replaced with the report (and not with the name of the report). Therefore, MyReport is used as a report.
Advantage: The MyReport keyword can be used to make local (control, button, etc.) or global (procedure, class, etc.) code 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: 09/19/2024

Send a report | Local help