Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbf sync
Message
From
07/06/2010 10:16:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/06/2010 09:48:33
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01467676
Message ID:
01467681
Views:
65
>how i can synchronize 2 dbf files on the basis of uniqid field
>
>warm regards,
>mk.

I believe you would need, not only the primary key (the unique field), but also a timestamp - a field of type DateTime, to know which version of the record is newer. Every time you do any change, you would have to change the timestamp. This is actually the complicated part - maintaining it updated. Doing this in a trigger would probably give you an error message, about illegal recursion; I think you would have to do this in whatever form changes the data in the table.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform