Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing Table Structures
Message
 
 
To
12/06/2001 10:19:27
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00518332
Message ID:
00518369
Views:
15
>
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform