Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy and Paste Records
Message
De
17/03/2008 13:10:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01302318
Message ID:
01302709
Vues:
8
Using Naomi's example, if you want to use INSERT INTO, the syntax is:
SCATTER NAME loRecord Memo
loRecord.field2 = m.newpk &&substitute field1, field, etc with actual field names
Insert into mytable from loRecord (field1, field2,...) VALUES (loRecord.field1, loRecord.field2,...)
However, as she mentioned, if you have a lot of fields that you don't want to list out, you can instead append a new blank record and just gather the memvars or the object properties (using NAME)


>It isn't a huge number of records. There are a large number of fields however. I wouldn't mind doing it one record at a time if need be. I simply need to copy the records and append them to the end of the table, then change one identifier field.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform