AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Propiedades WLanguage / Propiedades HFSQL
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
Versión mínima requerida
  • Versión 12
Comentarios
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 08 2017

Última modificación: 13/07/2022

Señalar un error o enviar una sugerencia | Ayuda local