Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Re: Cursor
Divers
Thread ID:
00455573
Message ID:
00455608
Vues:
30
What do you mean, "..the second cursor close the first one.."? Is the first cursor still in use? Or you want to see the contents of both cursors on the form in the browse-like windows?



>>>>>>>>>>>>>Your message below
Hi Every:
I have two cursors that I want to use. I don't want to use table because it creates a problem of deleting the table after the form closes. The problem is that when I open the second cursor, it closes the first one. How can I open two cursors in two different areas. This will solve the problem where the second cursor close the first one. Here is my code:

***Code for first cursor
Select * ; && select the data into the cursor
From SqlResult ;
Where recno() < 20;
ORDER BY SqlResult.jobnum;
InTo Cursor cAcct && first cursor

***Code for second cursor
Select * ; && select the data into the cursor
From Jcjob;
ORDER BY jcjob.jobAcct;
InTo Cursor cJob && second cursor

What happens is that when the second cursor (cJob) is open, it closes the first cursor (cAcct). How can I keep them both open.

Thanks
MA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform