PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Handling the current page
  • Using MyPage in a procedure
  • WLanguage functions and current page
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
MyPage (Reserved word)
In french: MaPage
MyPage is used to handle the current page. When the page is run, MyPage is replaced by the page (and not by the name of the page). Then, MyPage can be used like any page.
Benefit: MyPage is used to make a local code (control, button, ...) or a global code (global procedure, class, ..) independent of the current page.
Example
// Retrieve the title of the current page
PageTitle = MyPage..Title
// Button for changing the language
Nation(nationEnglish)
PageDisplay(MyPage)
Syntax
MyPage
Remarks

Handling the current page

  • MyPage is always replaced by the current page.
  • MyPage can only be used in the processes that handle the current page (processes associated with a control, with a page, ...). MyPage cannot be used in a report.
  • MyPage can only be used from a process or from a procedure of the page.

Using MyPage in a procedure

MyPage can be used in a local or global procedure only if the procedure handles the current page. In this case, MyPage refers to the current page.
For a local procedure, MyPage corresponds to the page to which the procedure belongs.

WLanguage functions and current page

To specify the current page in the WLanguage functions that accept a page name in parameter, use:
  • an empty string,
  • MyPage directly.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment