ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Replication (Property)
In french: Replication
HFSQL ClassicAvailable only with this kind of connection
The Replication property is used to:
  • find out the replication mode used for a data file (data file defined in the data model editor or programmatically defined).
  • specify the replication mode used for a data file (for programmed description of the data file only).
This property can only be used in a log-based replication.
Example
// Teste si le fichier de données est marqué comme pouvant être répliqué (réplication journalée)
IF Client.Réplication = hNotReplicated THEN Info("Réplication impossible")
Syntax

Getting the replication mode Hide the details

<Current mode> = <Data file>.Replication
<Current mode>: Integer constant
Replication modes:
hMasterReplicaThe data file is a master replica (HCreateMasterReplica was used to create the master replica)
hNotReplicatedThe data file is not configured for a log-based replication. To implement log-based replication, check "Log-based replication" in the data file options ("Logging" tab of the data file description window).
hReplicatedThe data file is configured to be replicated.
hSubscriberReplicaThe data file is a subscriber replica (HCreateSubscriberReplica was used to create the subscriber replica)
<Data file>: Character string
Name of the data file used. This name is defined in the data model editor or with the File Description type.

Defining the replication mode Hide the details

<Data file>.Replication = <Replication mode>
<Data file>: Character string
Name of the data file used. This name is defined with the File Description type.
<Replication mode>: Integer constant
Replication modes:
hNotReplicatedThe data file is not configured for a log-based replication.
hReplicatedThe data file is configured to be replicated.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/13/2025

Send a report | Local help