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
  • Finding out the value returned by a child window
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
MyChildWindow is used to handle the child window of the current window. When running the window, MyChildWindow is replaced with the window (and not by the name of the window).
Interest: The MyDaughterWindow keyword can only be used in the "Closing a child window" event.. This keyword is used to handle in this code the characteristics of the child window that was closed. This allows you to retrieve:
  • the name of the child window that was closed by the Name property.
  • the value returned by the child window via the ReturnedValue property.
Ejemplo
// Evénement "Fermeture d'une fenêtre fille de FEN_Liste_Clients"
// -------------------------------------------------------------
// Actualise la liste des clients
LooperDisplay(ZR_Clients, taReExecuteQuery)

// Pour tout retour (sauf la suppression)
IF MyChildWindow.ValeurRenvoyée <> -1 THEN
	nIndice is int
	// Recherche la ligne du client
	nIndice = LooperSearch(ATT_NumClient, Client.NumClient)
	IF nIndice > 0 THEN
		// Positionne sur la ligne du client
		LooperPosition(ZR_Clients, nIndice)
	END
END
Sintaxis
MyChildWindow
Observaciones

Finding out the value returned by a child window

In the mobile applications, the windows are opened by OpenMobileWindow (or OpenChild) instead of Open.
MyChildWindow allows you to get the name of the child window closed as well as the value it has returned, when used in the "Close a child window" event of the parent window (the window in which OpenMobileWindow or OpenChild were called).
For example:
  • In the closing code of the child window, Close is used to return a parameter:
    Close("", MyParameter)
  • The name of the child window as well as the returned value can be retrieved in the "Close a child window" event of the calling window:
    // Close a child window
    NameChildWindow = MyChildWindow.Name
    ValueChildWindow = MyChildWindow.ReturnedValue
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

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