PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Importing a file description from an analysis
HDeclare (Example)
Example: Importing a file description from an analysis
WINDEVWEBDEV - Server codeAjaxUser code (UMC)Hyper 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