PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
PageCurrentLayout (Function)
In french: PageAgencementEnCours
Returns the index of the current layout:
  • in the current page.
  • in the specified page.
Versions 27 and later
Ajax This function is now available in Ajax codes.
New in version 27
Ajax This function is now available in Ajax codes.
Ajax This function is now available in Ajax codes.
Example
IF PageCurrentLayout() = 2 THEN
STC_Details = Customer.Details
END
Syntax

Finding out 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.
  • layoutPrint constant if the specific layout for printing is being used.

Finding out 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.
  • layoutPrint constant if the specific layout for printing is being used.
<Page>: Page name
Name of the page used.
Remarks
  • The layouts are numbered in their creation order in edit.
  • The layout changes if the device orientation changes or if PageChangeLayout is run.
Business / UI classification: UI Code
Component: wd270page.dll
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment