ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
NewRecord (Property)
In french: NouvelEnregistrement
ODBCOLE DBNot available with these kinds of connection
The NewRecord property is used to determine if the record is a new record or if it comes from the data file.
Example
// Find out whether the record was created
IF Customer.NewRecord = True THEN
Info("This record was created")
END
Syntax

Finding out whether the record is a new record Hide the details

<Result> = <Data file>.NewRecord
<Result>: Boolean
  • True if the record is a new record (HReset was used),
  • False otherwise.
<Data file>: Character string
Name of the data file used.
Remarks
By default, the NewRecord property is set to True. This property is also set to True if HReset was used.
It is reset to False when one of the following functions is called:
Remark: Assigning a variable of type Record to a file also changes the value of the NewRecord property.
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
como usar new record
ScreenToFile()
IF usuario_grupo..NewRecord THEN
HAdd(usuario_grupo)
ELSE
HModify(usuario_grupo)
END

// BLOG COM VIDEO EXEMPLO NEW RECORD


http://windevdesenvolvimento.blogspot.com.br/2017/08/aula-1235-windev-hyperfile-32-new-record.html

https://www.youtube.com/watch?v=8DMBslgdJGY

De matos
09 Aug. 2017

Last update: 07/13/2022

Send a report | Local help