PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Re-initializes:
  • 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 the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the 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
// Add a customer
ScreenToFile()
HAdd(Customer)
// Re-initialize the controls in order to enter a new customer
Reset(True)
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjaxUser code (UMC)
// Re-initialize the controls found in the "SC_Customer" supercontrol
// The list box, combo box, table and looper controls of this supercontrol
// will keep their current content.
Reset(SC_Customer, True)
WEBDEV - Browser codePHP
// -- Browser click code of BTN_CANCEL
// Cancels the inputs performed in the form
Reset()
Syntax

Re-initializing all the controls found in the current window or page Hide the details

Reset([<Management of Special Controls>])
<Management of Special Controls>: Optional boolean
  • True:
    • the edit controls and the Static controls are re-initialized with their initial value,
    • the browsing or memory List Box, Combo Box, Table and Looper controls are neither cleared nor re-initialized. They keep their current content.
  • False (default value):
    • the edit controls and the Static controls are re-initialized with their initial value,
    • the memory List Box, Combo Box, Table and Looper controls are cleared and re-initialized with their initial content,
    • the browsing List Box, Combo Box, Table and Looper controls are re-initialized (they are not cleared).
WEBDEV - Browser codePHP This parameter is not available: all the page controls are re-initialized 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 QueriesAjaxUser code (UMC)

Re-initializing 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 (with or without quotes)
Name of group of controls, supercontrol, internal window or internal page whose controls will be re-initialized.
<Management of List Box Controls>: Optional boolean
  • True:
    • the edit controls are re-initialized to their initial value,
    • the list boxes, combo boxes, tables and loopers (browsing or memory) are neither cleared nor re-initialized. They keep their current content.
  • False (default value):
    • the edit controls are re-initialized to their initial value,
    • the "memory" list boxes, combo boxes, tables and loopers are cleared and re-initialized with their initial content,
    • the "browsing" list boxes, combo boxes, tables and loopers are re-initialized (they are not cleared).
WINDEVWEBDEV - Server codeWINDEV MobileReports and QueriesPHPAjaxUser code (UMC)

Re-initializing 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 (with or without quotes)
Name of element whose controls will be re-initialized. 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:
    • the edit controls and the Static controls are re-initialized with their initial value,
    • the browsing or memory List Box, Combo Box, Table and Looper controls are neither cleared nor re-initialized. They keep their current content.
  • False (default value):
    • the edit controls and the Static controls are re-initialized with their initial value,
    • the memory List Box, Combo Box, Table and Looper controls are cleared and re-initialized with their initial content,
    • the browsing List Box, Combo Box, Table and Looper controls are re-initialized (they are not cleared).
PHP This parameter is not available: all the page controls are re-initialized 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

HReset is used to reset the variables of HFSQL files. To reinitialize the variables of the HFSQL files in a page, you must use the following code:
HReset(<File Name>)
FileToPage()
Caution: If controls are associated with file items, these items contain stars ("*").
Note: From version 19, HFSQL is the new name of HyperFileSQL.
WEBDEV - Server codeWEBDEV - Browser codePHPAjax

Initialization process

Do not confuse Reset and PageInitialization. Indeed:
  • Reset resets the controls
  • 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

Reset does not reinitialize the caption of the Button controls.
PHP Reset has no effect on the following controls:
  • Static control,
  • Button control,
  • Image control.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment