Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show result of many SQLEXEC() at the same time
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Show result of many SQLEXEC() at the same time
Divers
Thread ID:
00644277
Message ID:
00644277
Vues:
50
Good morning everybody,

I have a form that shows a grid which is binded to a cursor created with a SQLEXEC() command on a SQL server. I have set the Asynchronous property of the connection to .T. and the FetchAsNeed of the cursor to .T. because I don't want to wait after SQLEXEC() to finish to show my form... This works well, as I navigate through my grid, the missing records are fetched...

I have, on this same form a button that shows another form with a grid (created the same way as the first form). The request executed by the second form has a WHERE clause in function of a field of my first cursor. So as I move in the first grid, I refresh the cursor for the second grid to show some information in relation about the first grid's current record... This works well too except a little something : If the records of the first cursor are not all fetched when I click on the button to show the second form, there's a delay because, if I understand well, the first SQLEXEC() has to finish before the second can be executed...

I have the idea to make a different connection on each form, but I'm not sure it's the best way to do it...

Any idea would be appreciate


Regards
********************************************

Benoit Grenier


encoder@silogic.ca (Job)
encoder@sympatico.ca (home)
Web site : www.silogic.ca
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform