Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick compare tables
Message
From
22/01/2003 11:12:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/01/2003 10:58:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00743925
Message ID:
00744273
Views:
8
>Hi Jeff.
>
>>Anyone know of a compare function or other utility that will return whether two tables with the same structure contain exactly the same data in each field?
>
>Someone (don't remember who) posted a simple way to do this in VFP 7 or later: use CURSORTOXML to convert each table to XML string, then do a simple IF lcXMLTable1 = lcXMLTable2. That would find any differences, including structure or content.
>
>Doug

Then why not just read the entire file with FileToStr()? This should work faster, and be compatible with VFP6.
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