Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter-Gather
Message
From
24/08/2000 10:49:26
 
 
To
24/08/2000 10:35:03
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00408721
Message ID:
00408754
Views:
10
>Actually, let me see if I can make this clearer.
>
>Table A has fields: add_date, add_time, add_user
>
>Table B does not!
>
>I am updating Table A with Table B, therefore I am scattering from Table B and gathering to Table A. It seems to me that because those fields don't exist in Table B, when it gathers to Table A - it deletes the value of those fields and updates with nothing ( cause those fields don't exist in Table B ). Maybe that makes more sense. I can't really use the GATHER EXPECT add_date, add_time, add_user because they are in Table B. Or if I do that, will it just ignore those records all together?
>
>JOlene

Like I said, these fields _were_ scattered at some point prior to this into memvars. If they weren't they would just be ignored. They are still in memory so they are getting overwritten.

GATHER EXCEPT should work. But Nigel gave the best answer for this: use SCATTER NAME / GATHER NAME instead.
Check out help on these commands for more detail.

BTW, you can verify that these memvars do exist by setting a breakpoint before the GATHER and looking in the Locals window (in the debugger).
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform