ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Opening files
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
<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.
  • <Source>.Reset modifies the NewRecord property of relevant data file: this property is switched to True.
Example
// Assign the default values to the items
Customer.Reset()
// Display
PAGE_Customer.FromFile(Customer)
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 files

<Source>.Reset opens the data file used. Therefore, the data file must have been created.
WEBDEV - 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: wd290hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/07/2023

Send a report | Local help