Returns information about a replication. This replication was defined by the replication editor (ReplicEdit).
IF RéplicInfo("MyReplication", replicExist) = True THEN
ReplicSynchronize("MyReplication")
END
Syntax
<Result> = ReplicInfo(<Replication name> , <Requested information>)
<Result>: Type corresponding to the requested information
Information requested by <Requested information>.
<Replication name>: Character string
Name of the replication to use. This name corresponds to:- the name of ".wer" file, created by ReplicEdit (for an online replication). This file must be found beside the executable.
- the publication name (for a replication server).
<Requested information>: Integer constant
Requested information about the specified replication: | |
replicExist | <Result> is set to:- True if the replication exists (which means if the.WER file is found beside the executable).
- False if the replication does not exist.
Remark: For a replication via the replication server, <Result> is set to True if the parameters passed to ReplicOpen are correct. |
replicInitialized | <Result> is set to:- True if the replication is initialized,
- False if the replication is not initialized.
A non-fatal error occurs if the replication does not exist. This error can be processed by the ErrorOccurred variable. |
replicSynchronizationDate | <Result> corresponds to the date of the last synchronization.A non-fatal error occurs if the replication does not exist. This error can be processed by the ErrorOccurred variable. |
replicSynchronizationRequestDate | <Result> corresponds to the date of the last request for synchronization.A non-fatal error occurs if the replication does not exist. This error can be processed by the ErrorOccurred variable. |