ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
  • Events executed
  • Opening variable
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
InitWindow (Function)
In french: InitFenêtre
AjaxNot available
Initializes (or not) the controls to zero and runs the initialization processes of the controls and the window.
WEBDEV - Server code PageInitialization can also be used.
Example
// Initialise les champs à zéro et lance les événements d'initialisation des champs
InitWindow()
Syntax
InitWindow([<Initialization of controls>])
<Initialization of controls>: Optional boolean
  • True (default value) if the controls must be initialized to zero before running the initialization events of the controls,
  • False if the controls must not be initialized to zero before running the initialization events of the controls.
Remarks

Events executed

InitWindow executes:
  • the "Initialization" event of the window,
  • the "Initialization" event of the window controls,
  • The "End of initialization" event of the window.
InitWindow does not run the "Global declarations" event of the window.

Opening variable

When the "Initialization" event of a control is run, the Opening variable is set to:
  • True if the execution of the "Initialization" event of the control was triggered when the window was opened,
  • False if the execution of the "Initialization" control event was triggered by InitWindow.
Therefore, the execution of the control initialization events can depend on the value of the Opening variable.

Miscellaneous

  • The input is performed in the first control according to the tab order defined in the editor.
  • Attention Do not confuse the function InitWindow FUNCTION function with the Reset function, which resets all window fields to blank (without executing the "Initialize" field event).
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help