Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancelling SQL Pass-through Queries
Message
De
27/01/1999 07:03:53
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
27/01/1999 06:58:55
Alec Dearden
Peterborough Hospitals Nhs Trust
Peterborough, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00180661
Message ID:
00180662
Vues:
16
>I have an ODBC connection to a sybase 11 server. I am using SQLexec() to send a pass-through 'select' statment to retrieve some data. I would like users to be able to press a cancel button on the form if they want to stop the query.
>I use SQLsetprop() to switch to asynchronous mode and then use a simple 'do while .. enddo' look to run the query via SQLexec. How can I check to see if a user has tried to press the cancel button ?
>
>I am really stuck with this one and would appreciate any help!!
>
>Alec.

Hi,
On the Click of your cancel button you could set a global variable, or a form level property, then in you DO WHILE expression you could check the value to see if the query has finished OR the user pressed cancel.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform