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
PagePosition (Function)
In french: PagePosition
Scrolls a page up to position a control in the visible section of the page (top) in the browser.
Example
// LOOP_LOOPER is a Looper control.
// Position on the last row of the Looper control
PagePosition("", LOOP_LOOPER, LOOP_LOOPER.Occurrence)
Syntax
PagePosition(<Page name> , <Control name> [, <Index>])
<Page name>: Character string
Name of the page to scroll.
The current page will be used if the name of the page corresponds to an empty string (""). PagePosition has no effect if the name of the page is incorrect.
<Control name>: Character string
Name of the control to display in the visible part of the specified page. PagePosition has no effect if the control is already visible in the page or if the page is entirely visible in the browser.
<Index>: Optional integer (for Looper and Table controls populated programmatically)
Index of the row that contains the control. PagePosition has no effect:
  • if the control is not a Looper or Table control populated programmatically,
  • if the index is greater than the number of rows in the specified Table or Looper control populated programmatically.
Component: WDJS.DLL
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help