PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
  • Opening files
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
<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 occurred. HErrorInfo returns more details.
<Source>: Type corresponding to the specified source
Name of data file used.
<Item>: Optional character string (with or without quotes)
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 re-initialized.
Remarks

Opening 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 : wd250hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment