PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
GenerationNumber (Property)
In french: NuméroGénération
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
..GenerationNumber is used to find out the generation number of the physical data file associated with the specified logical data file.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Find out the generation number of Customer file
ResGenerationNum = Customer..GenerationNumber
Syntax
<Result> = <File Name>..GenerationNumber
<Result>: Integer
Generation number of the physical data file currently associated with the specified logical data file.
<File Name>: Character string (with or without quotes)
Logical name of data file used.
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
..GenerationNumber returns the File's generation number


Still, there's is no W-Language command or property to retrieve the internal generation number from the analysis. Logically, only the comparison of the file's generation number and the analysis' generation number can reveal if the file is newer or older than the analysis.

In fact, there is a workaround. It comprises to make an empty database / directory , to HCreate all files of the analysis, to compare files and take action or not, to delete the database or directory. In a multiuser environment, each station has to create its own database or directory. But it is by far not that easy as described here and it involves a lot of code lines. And it eats time on each time a program is started.

Request: make a ..GenerationNumber property available in order to retrieve the internal generation number from the analysis.
Jimbo
10 May 2011