ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Window 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 window.
  • in the specified window or internal window.
Example
IF WinCurrentLayout(WIN_Details) = 2 THEN
STC_DETAILS = CUSTOMER.DETAILS
END
Syntax

Getting the layout of the current window Hide the details

<Result> = WinCurrentLayout()
<Result>: Integer
  • Index of the current layout.
  • 0 if the window includes no layout.

Getting the layout of a specific window Hide the details

<Result> = WinCurrentLayout(<Window used>)
<Result>: Integer
  • Index of the current layout.
  • 0 if the internal window includes no layout.
<Window used>: Window name
Name of the window or internal window used.
Remarks
  • Layouts are numbered in the order in which they were created.
  • The layout changes if the device orientation changes or if WinChangeLayout is run.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2023

Send a report | Local help