Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attaching a cursor to a CA
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Attaching a cursor to a CA
Divers
Thread ID:
01651181
Message ID:
01651181
Vues:
68
Hi,

I would like to know if the following approach is possible and how. I am showing the pseudo code in exact order it has to go:

1. The program creates a Cursor Adapter and of course it has a cursor. Lets name is CA_Cursor.
2. The code populates/fills this cursor CA_Cursor with some records (getting them from the DB).
3. The code updates this cursor CA_Cursor but does not update the DB (that is, Tableupdate() is not fired).
4. The records from the CA_Cursor are copied/appended to another cursor (of exactly the same structure). Say, named CA_Second.
5. Steps 2 - 4 repeated several times. Therefore, the cursor CA_Second now has records from every iteration of steps 2-4.
6. Detach cursor CA_Cursor from the CA object and Attach cursor CA_Second to the CA object.
7. Execute TableUpdate() to update the DB
"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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform