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.
  • Opening files
  • Record variable
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
HReset (Function)
In french: HRAZ
ODBCNot available with this kind of connection
Initializes:
  • one or all variables of file items with their default values.
  • Versions 19 and later
    WINDEVJava one or all items of a Record variable with their default values.
    New in version 19
    WINDEVJava one or all items of a Record variable with their default values.
    WINDEVJava one or all items of a Record variable with their default values.
The default values are defined when the data file is described in the data model editor.
Remarks:
  • HReset does not modify the record in the data file, it only modifies the data in memory.
  • HReset modifies the NewRecord property of relevant data file: this property is switched to True.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
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.
Versions 26 and later
Java The syntax for handling a variable of type Record is now available.
New in version 26
Java The syntax for handling a variable of type Record is now available.
Java The syntax for handling a variable of type Record is now available.
Example
// Affecte les rubriques avec leur valeur par défaut
HReset(Client)
// Affichage
FileToPage()
Syntax

Initializing the file items with their default values Hide the details

<Result> = HReset([<Data file> [, <Item>]])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Data file>: Optional character string
Name of the data file used. If this name is not specified, HReset will use the last data file used by the last HFSQL management function (function starting with "H").
<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.
Versions 19 and later
WINDEVJava

Initializing the record items with their default values (Record variable) Hide the details

<Result> = HReset(<Record> [, <Item>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Record>: Record variable
Name of the Record variable 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 record items.
Hyper File 5.5 This parameter is ignored. All the items are automatically reinitialized.
New in version 19
WINDEVJava

Initializing the record items with their default values (Record variable) Hide the details

<Result> = HReset(<Record> [, <Item>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Record>: Record variable
Name of the Record variable 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 record items.
Hyper File 5.5 This parameter is ignored. All the items are automatically reinitialized.
WINDEVJava

Initializing the record items with their default values (Record variable) Hide the details

<Result> = HReset(<Record> [, <Item>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Record>: Record variable
Name of the Record variable 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 record items.
Hyper File 5.5 This parameter is ignored. All the items are automatically reinitialized.
Remarks

Opening files

HReset opens the data file used. Therefore, the data file must have been created.
WINDEV During the custom management of errors, the test of HErrorLock must be run after the call to HReset.
Versions 19 and later
WINDEVJava

Record variable

To reset an Variable of type Record, it is also possible to use the VariableReset function.
New in version 19
WINDEVJava

Record variable

To reset an Variable of type Record, it is also possible to use the VariableReset function.
WINDEVJava

Record variable

To reset an Variable of type Record, it is also possible to use the VariableReset function.
Business / UI classification: Business Logic
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment