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
WINDEVWEBDEV - Server codeJavaPHPAjaxHFSQL 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).
// Create the Customer file
HCreationIfNotFound(Customer, "LUCY1999")
Example: Creating/Opening a data file created programmatically
WINDEVWEBDEV - Server codeJavaAjaxHFSQL 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 AFile
// Describe the "Customer" data file
AFile..Name = "Customer"
AFile..Type = hFileNormal
AFile..FicEncryption = hEncryptionStandard
// Describe the file items
...
// Validation of the "Customer" data file description
HDescribeFile(AFile)
HCreationIfNotFound(AFile..Name)
// Or HCreationIfNotFound("Customer")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/06/2024

Send a report | Local help