PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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
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 data file is described in the data model editor.
Notes:
  • 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.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
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([<File name> [, <Item name>]])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<File name>: Optional character string (with or without quotes)
Name of data file used. If this name is not specified, HReset handles the last data file used by the last function for HFSQL management (starting with the letter H).
<Item name>: 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 file items.
Hyper File 5.5 This parameter is ignored. All the items are automatically re-initialized.
Remarks

Opening files

HReset opens the data file used. Therefore, the data file must have been created.
Component : wd240hf.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