Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from cursor
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01654522
Message ID:
01654530
Views:
61
>>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.
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform