ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Example: Creating/Opening a password-protected data file
  • Example: Creating/Opening a data file created programmatically
HCreationIfNotFound (Example)
Example: Creating/Opening a password-protected data file
WINDEVJavaHFSQL ClassicHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses) The following example is used to create (or open) a password-protected file (Customer file).
// Création du fichier Client
HCreationIfNotFound(Client, "LUCILE1999")
Example: Creating/Opening a data file created programmatically
WINDEVJavaHFSQL ClassicHFSQL Client/ServerHyper File 5.5 The following example is used to create the Customer file. During the file creation, the name of the file to create must be specified. A File Description variable cannot be used. You must use:
  • the name of the file directly
  • the Name property on the File Description variable.
EXTERN UnFichier
// Description du fichier de données "Client"
UnFichier..Name = "Client"
UnFichier..Type = hFileNormal
UnFichier..FicEncryption = hEncryptionStandard
// Description des rubriques du fichier
...
// Validation de la description du fichier de données "Client"
HDescribeFile(UnFichier)
HCreationIfNotFound(UnFichier..Name)
// Ou HCréationSiInexistant("Client")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help