PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
PreviousPage (Function)
In French: PagePrécédente
Returns the name of previous page. The previous page is the page that opened the current page.
In AWP mode, PreviousPage always returns an empty string ("").
PHP In PHP, if the current page is:
  • without context: PreviousPage returns an empty string ("").
  • with context: PreviousPage returns the name of the previous page with context.
Example
Str is string
Str = PreviousPage()
Syntax
<Result> = PreviousPage()
<Result>: Character string
Name of the previous page in uppercase characters if the WLanguage code currently run is:
  • a page code (opening code, closing code or synchronization code)
  • a control code (initialization, click)
  • a procedure local to the page
Or an empty string ("") if the page is a static page or if the code currently run is:
  • the project code
  • a class constructor or destructor code
  • a class method
  • a procedure global to the project.
Linux The case of the page name corresponds to the real case of the page name. For example, if the current page corresponds to the "Home.WWH" page, the name returned will be "Home".
Remarks
PreviousPage can be used to manage the display of a BACK button in a WEBDEV page. To do so, specify the following line in the server click code of the button:
PageDisplay(PreviousPage())
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
WEBDEV - Browser code WDJS.DLL
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment