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
PageCurrentLayout (Function)
In french: PageAgencementEnCours
Returns the index of the current layout:
  • in the current page.
  • in the specified page.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code In browser code, it is only possible to see the layout of the current page.
Example
IF PageCurrentLayout() = 2 THEN
	LIB_Détail = Client.Détail
END
Syntax

Getting the layout of the current page Hide the details

<Result> = PageCurrentLayout()
<Result>: Integer
  • Index of the current layout.
  • 0 if the page has no layout.
  • one of the following constants:
    agencementWINDEVMobileThe specific layout for WINDEV Mobile is in progress.
    layoutPrintThe specific layout for printing is being used.
    layoutWINDEVThe specific layout for WINDEV is being used.
    layoutWINDEVMobileTabletThe specific layout for WINDEV Mobile (tablet) is in progress.
WEBDEV - Browser code Not available in browser code

Getting the layout of a specific page Hide the details

<Result> = PageCurrentLayout(<Page>)
<Result>: Integer
  • Index of the current layout.
  • 0 if the internal page has no layout.
  • one of the following constants:
    agencementWINDEVMobileThe specific layout for WINDEV Mobile is in progress.
    layoutPrintThe specific layout for printing is being used.
    layoutWINDEVThe specific layout for WINDEV is being used.
    layoutWINDEVMobileTabletThe specific layout for WINDEV Mobile (tablet) is in progress.
<Page>: Page name
Name of the page used.
Remarks
  • Layouts are numbered in the order in which they were created.
  • The layout changes if the device orientation changes or if PageChangeLayout is run.
Related Examples:
WW_Rewali Complete examples (WEBDEV): WW_Rewali
[ + ] This example is a site for travel booking.

It proposes travels at very attractive prices.
You have the ability to choose the travel duration, the start dates, then validate the purchase until the payment via Paypal.

It is using the "scrolling banner" control and the planes.
Business / UI classification: UI Code
Component: wd300page.dll
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help