Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append from cursor
Message
 
 
À
24/09/2017 13:41:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01654522
Message ID:
01654534
Vues:
57
>>>>Hi,
>>>>
>>>>How do you append from one cursor to another with FOR?
>>>>
>>>>I tried:
>>>>
>>>>select C_CURSOR1
>>>>append from DBF("C_CURSOR2") fields FLD1, FLD2 FOR C_CURSOR2.FLD1 = "123"
>>>>
>>>>
>>>>But it appends ALL records from the cursor C_CURSOR2 instead of just the ones matching the FOR
>>>>
>>>>What am I missing?
>>>
>>>Why not simply
>>>
>>>insert into c_cursor1 (fld1, fld2);
>>>select fdl1, fdl2 from c_cursor2 where fld1='123'
>>
>>I know this works. But I was simply wondering why the APPEND didn't work. Probably some VFP "feature"
>>Thanks.
>
>
>My guess is that in the given syntax VFP doesn't really know what C_Cursor2 is. Try
>
>
append from DBF("C_CURSOR2") fields FLD1, FLD2 FOR FLD1 = "123"
Thank you. I will try it.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform