June 1999
Intermediate to advanced
1368 pages
29h 45m
English
A simple example demonstrates how you can code synchronizations between replicas in a star and hub topology. It's assumed that you already have code that writes the path to any new replica created in a table called Replicas, and you define which replica is the hub.
The table Replicas has two fields:
ReplicaPath. A string pathname to each replica in the replica set.
Hub. A Boolean: “Yes” if it's the hub; otherwise, “No.”
The code simply creates a recordset from the Replicas table, and then loops through the records. If the current record doesn't point to the hub, synchronize by using ReplicaPath.
The code in Listing 23.5 is behind a button named cmdSyncAllReplicas on the Synchronize Star & Hub Topology form. ...
Read now
Unlock full access