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 tables
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.
The default values are defined when the table is described in the data model editor.
Remarks:
  • HReset does not modify the record in the table, it only modifies the data in memory.
  • The function HReset modifies the NewRecord property of the table concerned: this property changes to Vrai.
Example
// Assign the default values to the items
HReset(Customer)
// Display
DataToPage()
Syntax

Initializing the file items with their default values Hide the details

<Result> = HReset([<Table> [, <Item>]])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurs. HErrorInfo returns more details.
<Table>: Optional character string
Name of the table used. If this name is not specified, HReset will use the last table 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 table items.
Hyper File 5.5 This parameter is ignored. All the items are automatically reinitialized.
Remarks

Opening tables

HReset opens the table used. Therefore, the table must have been created.
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 mai 2017

Last update: 03/27/2025

Send a report | Local help