ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Example: Importing a file description from an analysis
HDeclare (Example)
Example: Importing a file description from an analysis
WINDEVWEBDEV - Server codeUser code (UMC)AjaxHyper File 5.5OLE DB The following example uses the CUSTOMER file described in the analysis named "C:\SALESMGT\SALESMGT.WDD". You have the ability to create the file, to add a record into this file for example.
EXTERN WDCUSTOMER

// Imports the description of CUSTOMER file as CUSTOMERWD
HDeclare("CUSTOMER", "C:\SALESMGT\SALESMGT.WDD", "Password", "WDCUSTOMER")

// Create the file in the directory of the application
HChangeDir("WDCUSTOMER", "C:\SALESMGT\")
HCreation("WDCUSTOMER")

// Add a record
WDCUSTOMER.NAME = "Montgomery"
...
HAdd("WDCUSTOMER")

// Closes the file
HClose("WDCUSTOMER")

// The description is not required anymore
HCancelDeclaration("WDCUSTOMER")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/14/2024

Send a report | Local help