AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
  • Link description
  • Miscellaneous
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds an integrity rule between two data files on the server. This integrity rule has been previously described by a variable of type Link description. All the client applications must comply with these integrity rules.
Remark: It is possible to describe inter-base integrity rules.
The addition will be effective for the application that performed it once the connection has been closed and re-opened.
Ejemplo
// Description de la connexion
MaConnexion is Connection

// Description de la connexion
MaConnexion.Utilisateur = "USER"
MaConnexion.MotDePasse = "PASSWORD"
MaConnexion.Serveur = "MONSERVEUR" 
MaConnexion.BaseDeDonnées = "Base de données"
MaConnexion.Provider = hAccessHFClientServer
MaConnexion.Accès = hORead

// Ouverture de la connexion
MaConnexion.OuvreConnexion()
...
MaLiaison is Link Description
// Description de la liaison "HABITE"
MaLiaison.Nom = "HABITE"
MaLiaison.FichierSource = ".\MaBase\ville.fic"
MaLiaison.FichierRelié = ".\MaBase\client.fic"
MaLiaison.CléSource = "NOMVILLE"
MaLiaison.CléReliée = "VILLECLI"
// Liaison par défaut (0-1, 0-1)
MaConnexion.AjouteLiaison(MaLiaison)
Sintaxis
<Result> = <Source connection>.AddLink([<Linked connection>, ] <Link>)
<Result>: Booleano
  • True if the operation was performed,
  • False if a problem occurs. HErrorInfo is used to identify the error.
<Source connection>: Variable de tipo Connection
Name of the Connection variable that describes the connection to which the link source file belongs.
<Linked connection>: Cadena de caracteres opcional o variable de tipo Connection
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>: Variable de tipo Link Description
Name of the Link description variable containing the characteristics of the link to create.
Observaciones

Link description

In the link description, 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 used. The Database of each file is returned by <Source connection> and <Linked connection>.

Miscellaneous

  • 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).
  • <Connection variable>.DeleteLink is used to delete a link on the server.
Componente: wd300hf.dll
Versión mínima requerida
  • Versión 25
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 04/12/2024

Señalar un error o enviar una sugerencia | Ayuda local