PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Various
  • HDeclare on the analyses of earlier versions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HDeclare (Function)
In French: HDéclare
ODBCNot available with this kind of connection
Declares a description of data file (found in an analysis) in the current project. This import is temporary and it can be canceled by HCancelDeclaration.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
// Declare a SupplierWD file from the SALESMGT analysis
HDéclare("Supplier", "\Examples\SalesMgt\SALESMGT.WDD", "", "SupplierWD")
Syntax
<Result> = HDeclare(<File Name> , <Full Path of WDD> [, <WDD Password> [, <Alias Name> [, <Options>]]])
<Result>: : Boolean
  • True if the operation was performed,
  • False if a problem occurred. HError is used to identify the error.
<File Name>: Character string (with quotes)
Logical name of the data file to import, used in the external analysis.
<Full Path of WDD>: Character string (with quotes)
Full access path to the analysis file (.WDD file) containing the description of the HFSQL data file to import (up to 260 characters).
This file can correspond to a WDD file created by an earlier version of WINDEV or WEBDEV.
<WDD Password>: Optional character string (with quotes)
  • Password associated with the analysis.
  • Empty string ("") if no password is used.
<Alias Name>: Optional character string (with quotes)
Logical name of the data file, used to handle the data file. This name corresponds to <File Name> by default.
This parameter is required if the current analysis already contains a data file whose logical name is <File Name> or if a file named <File Name> was described by HDeclareExternal or HDescribeFile.
<Options>: Optional integer constant
Search options:
hDisk
(Default value)
The <Full Path of WDD> analysis is sought on the disk (most common case).
hWDLThe <Full Path of WDD> analysis is sought according to the following priorities:
  1. In the main library (.WDL file)
  2. In the different libraries according to the load order, then on disk.
  3. In the main library of the component.
  4. In the secondary libraries of the component according to the load order.
Remarks

Various

  • There is no need to have an analysis linked to the current application to import a description of data file.
  • All the HFSQL functions can be used on the imported data file except for the integrity management.
  • You can import as many descriptions as necessary.
  • This function allows you to use data files described in the earlier WINDEV and WEBDEV analyses (WINDEV 4.1 to 5.5, WEBDEV 1.0 and 1.5).
WINDEVWEBDEV - Server codeWindowsHyper File 5.5

HDeclare on the analyses of earlier versions

The Hyper File engine version 4.1 to 5.5 not being able to operate without an opened analysis (unlike the HFSQL Classic engine), the analysis of the first data file accessed in opened in the Hyper File 5 engine.
An alias name must be used to access a data file with the following characteristics:
  • data file of another analysis.
  • data file with the same logical name as one of the data files found in the opened analysis.
Caution: The data files described in the earlier WINDEV and WEBDEV analyses (WINDEV 4.1 to 5.5, WEBDEV 1.0 and 1.5) are handled by the Hyper File engine version 5.5: WD553HF.DLL.
This module exists in 32-bit version only.
Therefore, an application that must view data in format 5.5 (or earlier) must:
  • necessarily be compiled in 32-bit mode (and not in 64-bit mode),
  • limit its capabilities to the ones available in WINDEV version 5.5. For example, the hWDL constant did not exist in version 5.5: therefore, it cannot be used on a Hyper File 5.5 file.
Related Examples:
WD External file Training (WINDEV): WD External file
[ + ] This program, powered by WINDEV, explains how to handle files not described in the analysis.
You have the ability ot use the WLanguage functions named HDeclare or HDeclareExternal.
The differences of behavior regarding these two declaration modes of the file are highlighted in this example.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Linux wd230hf.so
Windows Mobile wp230hf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment