PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • File variables
  • Initialization process
  • Table and Looper controls
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Reinitializes:
  • all controls found in the current window or in the current page (including the groups of controls, the supercontrols, the popups and the internal windows).
  • the controls found in a group of controls, a supercontrol, a popup, an internal window or an internal page.
WEBDEV - Browser codePHP Reinitializes all the controls to their initial value. The initial value of controls corresponds to the value of controls during the last page display on the browser (first page display or display during a refresh operation, ...).
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Ajout d'un client
ScreenToFile()
HAdd(Client)
// Ré-initialisation des champs afin de saisir un nouveau client
Reset(True)
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
// Ré-initialisation des champs présents dans le superchamp "SC_Client"
// Les champs liste, combo, table et zone répétée de ce superchamp
// conserveront leur contenu actuel.
Reset(SC_Client, True)
WEBDEV - Browser codePHP
// -- Code de clic navigateur du bouton BTN_ANNULER
// Annule les saisies effectuées dans le formulaire
Reset()
Syntax

Reinitializing all the controls in the current window or page Hide the details

RESET([<Management of Special controls>])
<Management of Special controls>: Optional boolean
  • True:
    • Edit controls and Static controls are reinitialized to their initial value,
    • browsing or memory List Box, Combo Box, Table and Looper controls are neither cleared nor reinitialized. They keep their current content.
  • False (default value):
    • Edit controls and Static controls are reinitialized to their initial value,
    • memory List Box, Combo Box, Table and Looper controls are cleared and reinitialized to their initial content,
    • browsing List Box, Combo Box, Table and Looper controls are only reinitialized (they are not cleared).
WEBDEV - Browser codePHP This parameter is not available: all the page controls are reinitialized to their initial value. The initial value of controls corresponds to the value of controls during the last page display on the browser (first page display or display during a refresh operation, ...).
WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesUser code (UMC)Ajax

Reinitializing all the controls found in a group of controls, a supercontrol, an internal window or an internal page Hide the details

RESET(<Element name> [, <Management of List Box controls>])
<Element name>: Character string
Name of group of controls, supercontrol, internal window or internal page whose controls must be reinitialized.
<Management of List Box controls>: Optional boolean
  • True:
    • Edit controls are reinitialized to their initial value,
    • List Box, Combo Box, Table and Looper controls (browsing or memory) are neither cleared nor reinitialized. They keep their current content.
  • False (default value):
    • Edit controls are reinitialized to their initial value,
    • memory List Box, Combo Box, Table and Looper controls are cleared and reinitialized to their initial content,
    • browsing List Box, Combo Box, Table and Looper controls are only reinitialized (they are not cleared).
WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesUser code (UMC)PHPAjax

Reinitializing all the controls found in a group of controls, a supercontrol, an internal window or an internal page Hide the details

RESET(<Element name> [, <Management of Special controls>])
<Element name>: Character string
Name of element whose controls will be reinitialized. Can correspond to:
  • Name of group of controls.
  • Name of supercontrol.
  • Name of internal window or internal page.
  • WEBDEV - Server code Name of control template.
  • WEBDEV - Server code Name of popup.
PHP Name of group of controls to reinitialize.
<Management of Special controls>: Optional boolean
  • True:
    • Edit controls and Static controls are reinitialized to their initial value,
    • browsing or memory List Box, Combo Box, Table and Looper controls are neither cleared nor reinitialized. They keep their current content.
  • False (default value):
    • Edit controls and Static controls are reinitialized to their initial value,
    • memory List Box, Combo Box, Table and Looper controls are cleared and reinitialized to their initial content,
    • browsing List Box, Combo Box, Table and Looper controls are only reinitialized (they are not cleared).
PHP This parameter is not available: all the page controls are reinitialized to their initial value. The initial value of controls corresponds to the value of controls during the last page display on the browser (first page display or display during a refresh operation, ...).
Remarks
WEBDEV - Server codePHPAjax

File variables

The HReset function allows you to reset variables in HFSQL files to empty. To reinitialize the variables of the HFSQL files in a page, you must use the following code:
HRAZ(<Nom de fichier>)
FichierVersPage()
Caution: If controls are associated with file items, these items contain stars ("*").
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Initialization process

Do not confuse Reset and PageInitialization. Indeed:
  • the Reset function resets the fields to empty
  • PageInitialization resets the controls and runs the initialization processes.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Table and Looper controls

A Table or Looper control linked to a data file can never be empty. This control is automatically initialized with the values of the linked items in the data file.

Limits

The Reset function does not reset the labels of the fields Button.
PHP The Reset function has no effect on the following fields:
  • Static control,
  • Button control,
  • Image control.
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment