PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Opening files
  • Record variable
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.
  • Versions 19 and later
    WEBDEV - Server code one or all items of a Record variable with their default values.
    New in version 19
    WEBDEV - Server code one or all items of a Record variable with their default values.
    WEBDEV - Server code 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.
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.
Versions 19 and later
WEBDEV - Server code

Initializing the record items with their default values (Record variable) Hide the details

<Result> = HRESET(<Record> [, <Item name>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Record>: Record variable
Name of Record variable used.
<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 record items.
Hyper File 5.5 This parameter is ignored. All the items are automatically re-initialized.
New in version 19
WEBDEV - Server code

Initializing the record items with their default values (Record variable) Hide the details

<Result> = HRESET(<Record> [, <Item name>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Record>: Record variable
Name of Record variable used.
<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 record items.
Hyper File 5.5 This parameter is ignored. All the items are automatically re-initialized.
WEBDEV - Server code

Initializing the record items with their default values (Record variable) Hide the details

<Result> = HRESET(<Record> [, <Item name>])
<Result>: Boolean
  • True if the initialization was performed,
  • False if a problem occurred. HErrorInfo returns more details.
<Record>: Record variable
Name of Record variable used.
<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 record 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.
WEBDEV - Server code During the custom management of errors, the test of HErrorLock must be run after the call to HReset.
Versions 19 and later
WEBDEV - Server code

Record variable

To reinitialize a Record variable, you also have the ability to use VariableReset.
New in version 19
WEBDEV - Server code

Record variable

To reinitialize a Record variable, you also have the ability to use VariableReset.
WEBDEV - Server code

Record variable

To reinitialize a Record variable, you also have the ability to use VariableReset.
Component : wd240hf.dll
Minimum required version
  • 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
May 15 2017