Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter
Message
From
02/06/2005 23:40:02
 
 
To
02/06/2005 23:28:58
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019671
Message ID:
01019672
Views:
24
>Dear Experts
>
>I have two tables, table1 and table2
>
>How to scatter table1?
>and then how to gather into table2?
>
>For example
>
>Select table1
>scatter && please correct this line
>select table2
>gather && please also correct this line
>
>
>I do not want to use this command
>select table2
>append from table1
>
>Please help



We are assumming that the tables structures are the same, at least most fields are shared between them.

One way would be:
Select Table1
*Seek OneRecord
Scatter Memvar
Select Table2
Append Blank  && assuming you want a new record
Gather Memvar
or probably better:
Insert Into Table2 From Memvar
or you could Scatter to an object:
Scatter Name oRecord
Then you can manipulate object oRecord and gather from it, etc.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform