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 / Funciones WLanguage / Controles, páginas y ventanas / Funciones de ventanas
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
Opens a window whose result will be retrieved via a WLanguage procedure ("callback").
Ejemplo
// Open asynchronously without passing parameters
OpenAsynchronous(WIN_DateSelect, (), CloseDateSelect)
INTERNAL PROCEDURE CloseDateSelect(SelectedDate)
EDT_DATE = SelectedDate
END
// Open asynchronously without passing parameters and lambda
OpenAsynchronous(WIN_DateSelect, (), (SelectedDate) => {EDT_DATE = SelectedDate})
// Open asynchronously with 2 parameters
OpenAsynchronous(WIN_DateSelect, (DateSys(), "Select a date"), CloseDateSelect)
INTERNAL PROCEDURE CloseDateSelect(SelectedDate)
EDT_DATE = SelectedDate
END
Sintaxis
OpenAsynchronous(<Window> [, <Parameters>] [, <Optional WLanguage procedure>])
<Window>: Window name
Name of the window to be opened.
<Parameters>: Optional character string
List of parameters to be passed to the window. This list of parameters has the following format:
(<Parameter 1>, ..., <Parameter N>)

where:
  • <Paramètre 1> First parameter to be passed to the "Global declarations" event of the window to be opened.. This parameter is passed by value and is considered a variable global to the window.
    This parameter cannot be a variable of type array (arrays can only be passed by reference).
  • <Paramètre N> Nth parameter to be passed to the "Global declarations" event of the window to be opened. This parameter is passed by value and is considered a variable global to the window.
    This parameter cannot be a variable of type array (arrays can only be passed by reference).
<Optional WLanguage procedure>: Optional procedure name or lambda procedure
Name of the WLanguage procedure ("callback") called after the window is closed. For more details on this procedure, see Parameters of the procedure used by OpenAsynchronous.
This WLanguage procedure can correspond to:
  • a name of a global procedure,
  • a name of an internal procedure,
  • a lambda procedure.
Observaciones
  • OpenAsynchronous opens the window in modal and asynchronous mode:
    • code execution continues without waiting for the window to be closed,
    • the WLanguage procedure will be called when the window is closed.
    • the user cannot click the parent window of the calling window.
  • A window opened with OpenAsynchronous will be automatically closed if the calling window is closed. However, the "Close a child window" event of the calling window will not be executed.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 27
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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