PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Link description
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Connection variable>.DeleteLink (Function)
In french: <Variable Connexion>.SupprimeLiaison
HFSQL Client/ServerAvailable only with this kind of connection
Deletes an integrity rule between two data files on the server. The integrity rule to delete is defined by a Link description variable.
The deletion 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.
Versions 22 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
MaConnexion est une Connexion
MaLiaison est une Description de Liaison
// Description de la liaison "HABITE"
MaLiaison.FichierSource = ".\ville.fic"
MaLiaison.FichierRelié = ".\client.fic"
MaLiaison.CléSource = "NOMVILLE"
MaLiaison.CléReliée = "VILLECLI"
 
// Liaison par défaut (0-1, 0-1)
MaConnexion.SupprimeLiaison(MaLiaison)
// Supprimer toutes les liaisons d'une base de données
// d'un serveur HFSQL Client/Serveur
// indépendamment de l'analyse en cours
CnxHFSQL est une Connexion
CnxHFSQL.Provider = hAccèsHFClientServeur
CnxHFSQL.Utilisateur = "admin"
CnxHFSQL.MotDePasse = ""
CnxHFSQL.Serveur = "HFSQLServeur:4900"
CnxHFSQL.BaseDeDonnées = "CRM"
CnxHFSQL.OuvreConnexion()
 
sListeLiaisons est chaîne = HListeLiaison("*", CnxHFSQL)
sInfoUneLiaison est une chaîne
UneLiaison est une Description de Liaison
 
POUR CHAQUE CHAÎNE sInfoUneLiaison DE sListeLiaisons SÉPARÉE PAR RC
SI sInfoUneLiaison <> "" ALORS
UneLiaison.Nom = ExtraitChaîne(sInfoUneLiaison, 1, TAB)
UneLiaison.FichierSource = Remplace(ExtraitChaîne(sInfoUneLiaison, 2, TAB), ...
CnxHFSQL.BaseDeDonnées, ".", SansCasse)
UneLiaison.CléSource = ExtraitChaîne(sInfoUneLiaison, 3, TAB)
UneLiaison.FichierRelié = Remplace(ExtraitChaîne(sInfoUneLiaison, 5, TAB), ...
CnxHFSQL.BaseDeDonnées, ".", SansCasse)
UneLiaison.CléReliée = ExtraitChaîne(sInfoUneLiaison, 6, TAB)
// Suppression de la liaison du serveur HFSQL Client/Serveur
Trace("Suppression >> " + UneLiaison.Nom + " >> " + ...
CnxHFSQL.SupprimeLiaison(UneLiaison))
FIN
FIN
Syntax
<Result> = <Source connection>.DeleteLink([<Linked connection>, ] <Link description>)
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurred. HErrorInfo is used to identify the error.
<Source connection>: Connection variable
Name of the Connection variable that describes the connection to which the link source file belongs.
<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 description>: Link Description variable
Name of the Link description variable containing the characteristics of the link to delete. The link to delete is defined by the source data file, the source item and the linked item.
Remarks

Link description

  • During the description of the link, the names of the data files involved in the link (SourceFile and LinkedFile properties) must correspond to the physical names of the data files, relative to the database concerned. The database of each data file is returned by the <Source connection> and <Linked connection> parameters
  • To delete a link, there is no need to describe all the characteristics of the link. Only the following properties are required:
    LinkedKeyItem of the linked data file used in the link.
    SourceKeyItem of the source data file used in the link.
    LinkedFileName of the linked data file used in the link.
    SourceFileName of the source data file used in the link.
    NameLink name.
Component: wd270hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment