ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Example: Creating/Opening a password-protected data file
  • Example: Creating/Opening a data file created through programming
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 through programming
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" file
AFile..Name = "Customer"
AFile..Type = hFileNormal
AFile..FicEncryption = hEncryptionStandard
// Describe the file items
...
// Validate the description of "Customer" file
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: 03/28/2023

Send a report | Local help