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
  • Record variable
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
  • WINDEVWEBDEV - Server codeAndroidAndroid Widget Java 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.
  • The function HReset modifies the NewRecord property of the data file concerned: this property changes to Vrai.
Example
// Assign the default values to the items
HReset(Customer)
// Display
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 occurs. 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 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.
WINDEVWEBDEV - Server codeAndroidAndroid Widget Java

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 occurs. 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 data files

HReset 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 HReset.
WINDEVWEBDEV - Server codeAndroidAndroid Widget Java

Record variable

To reset a variable of type Record, you can also use VariableReset.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Let's change the Add Button Code

//Nessa aula de hoje
//Vamos alterar o Codigo do Botao Incluir
//na Relacao de Empresas

//In this class today
//Let's change the Add Button Code
//In the Business Relationship

//En esta clase de hoy
//Cambiar el código del botao Incluir
//En la Relación de Empresas


HReset(empresa)
Open(WIN_Form_empresa)
TableDisplay(TABLE_QRY_RELACAO_EMPRESAS,taReExecuteQuery)
TableSelectPlus(TABLE_QRY_RELACAO_EMPRESAS,TABLE_QRY_RELACAO_EMPRESAS..Occurrence)

//Blog com Video e Exemplo

https://forum.pcsoft.fr/pt-BR/pcsoft.br.windev/2374-video-aulas-amarildo-aula-1150-windev-curso-erpamarildo/read.awp

http://windevdesenvolvimento.blogspot.com.br/2017/05/aula-1150-windev-curso-erpamarildo-8.html

https://www.youtube.com/watch?v=r87vz1ref7k
De matos
15 May 2017

Last update: 10/24/2024

Send a report | Local help