ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Page functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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: the PreviousPage function returns an empty string ("").
  • with context: the PreviousPage returns the name of the previous page with context.
Example
Ch is string
Ch = 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())
  • Searchable pages: If you are using searchable pages in Session mode, the PreviousPage function must not be used.. Since it is possible to access an SEO-ready page from any other page, the "previous" page will not exist.
Component: wd300page.dll
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help