Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Link description
  • Miscellaneous
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
HAddLink (Function)
In french: HAjouteLiaison
HFSQL Client/ServerAvailable only with this kind of connection
Adds an integrity rule between two data files on the server. This integrity rule was previously described using an Variable of type Link description. All the client applications must comply with these integrity rules.
Remark: You have the ability to describe inter-database integrity rules.
The addition will be effective for the application that performed it once the connection has been closed and re-opened.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
// Description de la connexion
HDescribeConnection("MaConnexion", "Julie", "MotDePasse", "MonServeurHF", ...
"MaBaseDeDonnées", hAccessHFClientServer, hORead)
// Ouverture de la connexion
MaLiaison is Link Description
// Description de la liaison "HABITE"
MaLiaison.Name = "HABITE"
MaLiaison.SourceFile = ".\MaBase\ville.fic"
MaLiaison.LinkedFile = ".\MaBase\client.fic"
MaLiaison.SourceKey = "NOMVILLE"
MaLiaison.LinkedKey = "VILLECLI"
// Liaison par défaut (0-1, 0-1)
HAddLink("MaConnexion", MaLiaison)
<Result> = HAddLink(<Source connection> [, <Linked connection>] , <Link>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurred. HErrorInfo is used to identify the error.
<Source connection>: Character string or Connection variable
Connection to which belongs the source file of the link. This connection corresponds to:
<Linked connection>: Optional character string or Connection variable
Connection to which belongs the linked file of the link. This connection corresponds to: If this parameter is not specified, both data files will belong to the same connection (<Source connection>).
<Link>: Link Description variable
Name of the Link description variable containing the characteristics of the link to create.

Link description

During the description of the link, the names of the data files participating in the link (SourceFile and LinkedFile properties) must correspond to the physical names of the data files, related to the considered Database. The Database of each file is returned by <Source connection> and <Linked connection>


  • HDescribeLink is used to describe a temporary link on an ISAM database (not in Client/Server mode) or for the client application only (not on the server).
  • HDeleteLink is used to delete a link on the server.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment