PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Canceling the declaration of a CUSTOMER file not found in the analysis
HCancelDeclaration (Example)
Example: Canceling the declaration of a CUSTOMER file not found in the analysis
Reports and QueriesHFSQLHFSQL Client/ServerHyper File 5.5OLE DBNative Connectors (Native Accesses)
The following example is used to:
  • temporarily import the description of CUSTOMER file into the analysis (from the physical file CUSTOMER.FIC).
  • process the data file.
  • end the temporary declaration.
EXTERN CUSTOMER
// Retrieves the description of Customer file not described in the current analysis
IF HDeclareExternal("C:\MyProject\AnExample\Customer.FIC", "CUSTOMER") = False THEN
Error(HErrorInfo())
ELSE
// Opens the file
HOpen(CUSTOMER)
// Process
...
HClose(CUSTOMER)
HCancelDeclaration(CUSTOMER)
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment