ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Opening data files
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Source>.Reset (Function)
In french: <Source>.RAZ
ODBCNot available with this kind of connection
Initializes one or more variables of the items found in a data file with their default values. The default values are defined when the data file is described in the data model editor.
Remarks:
  • <Source>.Reset does not modify the record in the data file, it only modifies the data in memory.
  • The function <Source>.Reset modifies the NewRecord property of the data file concerned: this property changes to Vrai.
Example
// Affecte les rubriques avec leur valeur par défaut
Client.RAZ()
// Affichage
PAGE_Client.DepuisFichier(Client)
Syntax

Initializing the file items with their default values Hide the details

<Result> = <Source>.Reset([<Item>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurs. HErrorInfo returns more details.
<Source>: Type corresponding to the specified source
Name of the data file used.
<Item>: Optional character string
Name of item to initialize. If this parameter is not specified or if it is equal to "*", the initialization will be performed for all data file items.
Hyper File 5.5 This parameter is ignored. All the items are automatically reinitialized.
Remarks

Opening data files

<Source>.Reset opens the data file used. Therefore, the data file must have been created.
WINDEVWEBDEV - Server code During the custom management of errors, the test of HErrorLock must be run after the call to <Source>.Reset.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/24/2024

Send a report | Local help