Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy and Paste Records
Message
De
17/03/2008 13:20:02
 
 
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:
01302713
Vues:
7
Thanks Sergey. I thought the fields had to be listed out (haven't used that syntax in a while).

>It should be
>
>Insert into mytable from NAME loRecord
>
>
>>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)
>>
>>
.·*´¨)
.·`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
Répondre
Fil
Voir

Click here to load this message in the networking platform