Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attaching a cursor to a CA
Message
 
 
À
20/05/2017 03:09:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01651181
Message ID:
01651261
Vues:
117
>>I didn't say it correctly; of course you can add new records to the CA cursor incrementally. I meant you cannot retrieve more records from the DB incrementally. Here is an example. You create a CA object and call the CursorFill() method to get records of customer "ABC". Then, you make some changes to these records (of customer "ABC"). Now, say you want to add to the CA cursor records of the customer "CBS", leaving all the records of customer "ABC" in the cursor and not yet sent to the DB (via TableUpdate()). So this is what the difficulty: how to retrieve into the existing CA cursor more records from the base DB table.
>
>sqlexec(h, ca.selectcmd, "temp")
>insert into (ca.alias) select * from temp
>use in temp

I will try this. Thank you.
"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