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 supercontrol
  • Using MyParent in a procedure
  • Summary
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
MyParent is used to handle:
  • The current supercontrol from an element of the supercontrol.
    When running the window, MyParent is replaced with the supercontrol (and not by the name of the supercontrol). Then, MyParent is used like a supercontrol.
    Interest: The MonParent keyword can be used to make the code of supercontrol fields (field, button, ...) or functions associated with the supercontrol independent of the supercontrol name.
  • The current report from one of the report controls.
  • The current window from one of the window controls.
Ejemplo
// Code du bouton de sélection
NomFichier = fSelect(fExtractPath(NomFichier, fDirectory), ...
	fExtractPath(NomFichier, fFile + fExtension), ...
	"Sélectionner un fichier", "Tous les fichiers (*.*)" + TAB + "*.*", "")

// La valeur du superchamp correspond au fichier sélectionné
MyParent..Value = NomFichier
Sintaxis
MyParent
Observaciones

Handling the current supercontrol

  • MyParent is always replaced with the current supercontrol. For example, passing a parameter:
    AppelProcedure(MyParent)
  • MyParent can only be used in the processes that handle the current supercontrol (for example, in the processes associated with a control found in the supercontrol, in the procedures associated with the supercontrol, ...).

Using MyParent in a procedure

MyParent can be used in a procedure associated with the current supercontrol. The keyword MonParent then refers to the current supercontrol.

Summary

Code where MyParent is usedMyParent corresponds to
windowwindow
window controlwindow
window procedure, with a direct call from a window codewindow
window procedure, with a call via <Window>.<Procedure>window
window supercontrolsupercontrol
control of window supercontrolsupercontrol
procedure of window supercontrol with a direct call from a code of the supercontrolsupercontrol
procedure of window supercontrol with a call via <Supercontrol>.<Procedure>supercontrol
internal windowParent container of internal window (window, internal window, ...)
control of internal windowinternal window
procedure of internal window with a direct call from a code of the internal windowinternal window
procedure of internal window with a call via <InternalWindow>.<Procedure>internal window
supercontrol of internal windowinternal window
control of supercontrol of internal windowsupercontrol
procedure of supercontrol of internal window with a direct call from a code of the supercontrolsupercontrol
procedure of supercontrol of internal window with a call via <Supercontrol>.<Procedure>supercontrol
Remark: This array also applies to pages and internal pages.
Versión mínima requerida
  • Versión 9
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