Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing Table Structures
Message
 
 
À
12/06/2001 10:19:27
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00518332
Message ID:
00518369
Vues:
16
>
>Ok guys, you're on a roll... It's not necessary for what I'm doing at the moment, but how would I tweak the the code to return the alias and field name for the non-matching fields? ...and what if there are more than one?
>
>Renoir

In that case, instead of returning a logical, I would return an object with an array property with all the fields in alias1 that didn't exist in alias2. By runnig through the arrays again, you could just as easily get the fields that exist in alias2 that don't exist in alias1.

If everything matched pass back a NULL and check for that. If everything didn't match, the calling routine would receive an object and would need to parse the aFieldsThatDidNotMatch array property.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform