PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 by the report (and not by the name of the report). Then, MyReport is used like a report.
Benefit: 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 by the current report. For example:
    Using a property (..BottomMargin for example):
    MyReport..BottomMargin = 15
    ResMargin = MyReport..BottomMargin

    Code for passing in 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