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
    WINDEVWEBDEV - Server codeWindows Mobile one or all items of a Record variable with their default values.
    New in version 19
    WINDEVWEBDEV - Server codeWindows Mobile one or all items of a Record variable with their default values.
    WINDEVWEBDEV - Server codeWindows Mobile 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.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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
WINDEVWEBDEV - Server codeWindows Mobile

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
WINDEVWEBDEV - Server codeWindows Mobile

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.
WINDEVWEBDEV - Server codeWindows Mobile

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.
WINDEVWEBDEV - Server code During the custom management of errors, the test of HErrorLock must be run after the call to HReset.
Versions 19 and later
WINDEVWEBDEV - Server codeWindows Mobile

Record variable

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

Record variable

To reinitialize a Record variable, you also have the ability to use VariableReset.
WINDEVWEBDEV - Server codeWindows Mobile

Record variable

To reinitialize a Record variable, you also have the ability to use VariableReset.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
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