PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
NewRecord (Property)
In french: NouvelEnregistrement
ODBCOLE DBNot available with these kinds of connection
The NewRecord property allows to know if the Record is a new Record or comes from of 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 (with or without quotes)
Name of data file used.
Remarks
By default, the Property NewRecord is 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:
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