AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Sintaxis WLanguage / Palabras clave reservadas
  • Handling the current page
  • Using MyPage in a procedure
  • WLanguage functions and current page
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
MyPage is used to handle the current page. When the page is run, MyPage is replaced with the page (and not by the name of the page). The MaPage keyword is then used as a page.
Why: The MaPage keyword can be used to make local (field, button, etc.) or global (global procedure, class, etc.) code independent of the current page.
Ejemplo
// Récupération du titre de la page en cours
TitrePage = MyPage..Title
// Bouton de changement de langue
Nation(nationEnglish)
PageDisplay(MyPage)
Sintaxis
MyPage
Observaciones

Handling the current page

  • MyPage is always replaced with the current page.
  • MyPage can only be used in the processes that handle the current page (processes associated with a control, with a page, ...). MyPage cannot be used in a report.
  • MyPage can only be used from a process or from a procedure of the page.

Using MyPage in a procedure

MyPage can be used in a local or global procedure only if the procedure handles the current page. The keyword MaPage then refers to the current page.
In the case of a local procedure, the MaPage keyword corresponds to the page to which the procedure belongs.

WLanguage functions and current page

To specify the current page in the WLanguage functions that accept a page name as parameter, use:
  • an empty string,
  • MyPage.
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local