PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Adds a replication between two HFSQL server onto the master server.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
ConfigReplication1 is hRSConfig
ConfigReplication1..Server = "atlas.mycompany.com:4996"
Add(ConfigReplication1..File, "MyDatabase")
Add(ConfigReplication1..File, "-MyDatabase\MyFile.fic")
HRSAddConfig(Cnt, ConfigReplication1, False)
ConfigReplication1 is hRSConfig
ConfigReplication1..Server = "atlas.mycompany.com:4996"
Add(ConfigReplication1..File, "MyDatabase")
Add(ConfigReplication1..File, "-MyDatabase\MyFile.fic")
HRSAddConfig(Cnt, ConfigReplication1, hrsNoCopy)
Syntax
<Result> = HRSAddConfig(<Connection> , <Replication to Perform> , <Initial Copy> [, <Progress Bar>])
<Result>: Boolean
  • True if the replication was added,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string (with or without quotes)
Connection to the HFSQL master server. This connection was defined in the data model editor, or by programming with HDescribeConnection or HOpenConnection.
<Replication to Perform>: hRSConfig variable
Name of hRSConfig variable describing the replication to perform.
<Initial Copy>: Boolean
  • True to enable the initial copy of replicated elements from the connection server (master server) to the other server (subscriber server, defined in the hRSConfig variable).
  • False otherwise.
<Progress Bar>: Optional character string (with or without quotes)
Name of the Progress Bar control used to see the progress of initial copy.
<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 (with or without quotes)
Connection to the HFSQL master server. This connection was defined in the data model editor, or by programming with HDescribeConnection or HOpenConnection.
<Replication to Perform>: hRSConfig variable
Name of hRSConfig variable describing the replication to perform.
<Option>: Integer constant
Action to perform:
Versions 22 and later
hrsCopy
New in version 22
hrsCopy
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 the earlier versions: Corresponds to True in the earlier versions.
Versions 22 and later
hrsCopyBackgroundTask
New in version 22
hrsCopyBackgroundTask
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:
  1. List the available replications with HRSListConfig.
  2. The requested replication was not added if it is not listed.
  3. If the requested replication is found, check the value of ..Initialization of 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.
Versions 22 and later
hrsNoCopy
New in version 22
hrsNoCopy
hrsNoCopy
No copy is performed.
Compatibility with the earlier versions: Corresponds to False in the earlier versions.
<Progress Bar>: Optional character string (with or without quotes)
Name of the Progress Bar control used to see the progress of initial copy.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Linux wd230hf.so
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment