PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Creating/Opening a password-protected data file
  • Example: Creating/Opening a data file created by programming
HCreationIfNotFound (Example)
Example: Creating/Opening a password-protected data file
WINDEVWEBDEV - Server codeWindows MobileJavaPHPAjaxHFSQLHFSQL 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 by programming
WINDEVWEBDEV - Server codeWindows MobileJavaAjaxHFSQLHFSQL 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..FicCryptMethod = hCryptStandard
// 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