ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Page functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the index of the current layout:
  • in the current page.
  • in the specified page.
Example
IF PageCurrentLayout() = 2 THEN
STC_Details = Customer.Details
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:
    layoutPrintThe specific layout for printing is being used.
    layoutWINDEVThe specific layout for WINDEV is being used.

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:
    layoutPrintThe specific layout for printing is being used.
    layoutWINDEVThe specific layout for WINDEV is being used.
<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: wd290page.dll
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment

Last update: 06/26/2023

Send a report | Local help