Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick compare tables
Message
De
22/01/2003 11:12:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/01/2003 10:58:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00743925
Message ID:
00744273
Vues:
15
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform