|
|
|
|
HInfoReplica (Function) In french: HInfoReplica
 Available only with these kinds of connection
Returns information about the specified replica. This function is used to find out whether the database contains data to replicate. Caution: This function cannot be used with the universal replication. This function can be used with the "log-based replication" only.
// Gray the button if there is no data to synchronize IF HInfoReplica("", rplMasterIsUpToDate) = True THEN BTN_SYNCHRO..State = Grayed END
Syntax
<Result> = HInfoReplica(<Full path of replica file> , <Sought information> [, <Identifier of subscriber replica>])
<Result>: Type depending on the type of information Requested information. <Full path of replica file>: Character string Full path of the replica file (".RPL" or ".RPM" file) corresponding to the replica to analyze. For a movable replica, corresponds to the path of the "*.WDZ" file. If this parameter corresponds to an empty string (""), the replica is sought in the current directory. <Sought information>: Constant The information differs according to the type of replica:- Master replica:
| | rplDateSynchroFromSubscriber | <Result> is a character string in "YYYYMMDD" format. Date of the last synchronization toward the master database. | rplDateSynchroToSubscriber | <Result> is a character string in "YYYYMMDD" format. Date of the last synchronization toward the subscriber database. | rplNumMovableReplica | Generation number of last movable replica generated for the subscriber replica whose identifier is <Identifier of subscriber replica>. | rplSubscriberIsUpToDate | <Result> is a boolean.- True if no data must be sent,
- False if data must be sent to a subscriber computer.
|
- Subscriber replica:
| | rplDateSynchroFromMaster | <Result> is a character string in "YYYYMMDD" format. Date of the last synchronization from the master database. | rplDateSynchroToMaster | <Result> is a character string in "YYYYMMDD" format. Date of the last synchronization toward the master database. | rplMasterIsUpToDate | <Result> is a boolean.- True if no data must be sent,
- False if data must be sent to a master computer.
| rplNumMovableReplica | Generation number of last movable replica that was generated. This number is incremented whenever HCreateMovableReplica is called. |
- Movable replica:
| | rplNumMovableReplica | Generation number of last movable replica that was generated. This number is incremented whenever HCreateMovableReplica is called. |
<Identifier of subscriber replica>: Optional character string or optional integer Identifies a subscriber replica. This parameter is taken into account if <Full path of replica file> corresponds to a master replica. This parameter can be: Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|