|
|
|
|
|
HRSAddConfig (Function) In french: HRSAjouteConfig
Available only with this kind of connection
Adds a replication between two HFSQL server onto the master server. Cnx is Connection
ConfigRéplication1 is hRSConfig
ConfigRéplication1.Server = "atlas.masociete.com:4996"
Add(ConfigRéplication1.File, "Mabase")
Add(ConfigRéplication1.File, "-Mabase\Monfichier.fic")
HRSAddConfig(Cnx, ConfigRéplication1, hrsNoCopy)
Syntax
<Result> = HRSAddConfig(<Connection> , <Replication to perform> , <Option> [, <Progress Bar>])
<Result>: Boolean - True if the replication was added,
- False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable Connection to the master HFSQL server. This connection corresponds to: <Replication to perform>: hRSConfig variable Name of the hRSConfig variable describing the replication to perform. <Option>: Integer constant Action to perform: | | hrsCopy | Enables the initial copy of replicated elements from the connection server (master server) to the other server (subscriber server, defined in the hRSConfig variable). This copy is locking. Compatibility with previous versions: Corresponds to Vrai in previous versions. | hrsCopyBackgroundTask | Enables the initial copy of replicated elements from the connection server (master server) to the other server (subscriber server, defined in the hRSConfig variable). This copy is performed in background task and it is not locking. To find out whether the copy was performed: - List the available replications with HRSListConfig.
- If the desired replication does not appear in the list, it means that it was not added.
- If the desired replication appears in the list, check the value of the Initialization property of the hRSConfig variable. If this property:
- is included between 0 and 1000, the replication is currently added.
- is set to 1000, the replication was added.
- is not specified, the replication failed to be added.
| hrsNoCopy | No copy is performed. Compatibility with previous versions: Corresponds to Faux in previous versions. |
<Progress Bar>: Optional control name Name of the Progress Bar control used to see the progress of initial copy.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|