Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter
Message
De
02/06/2005 23:40:02
 
 
À
02/06/2005 23:28:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01019671
Message ID:
01019672
Vues:
25
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform