Information générale
Catégorie:
COM/DCOM et OLE Automation
>How do I fetch a recordset asynchronously?
>(Or execute a command)
>I can't seem to figure it out from the API docs.
>
>Thanks
You can use adAsyncExecute as an option to the recordset, connection or command objects for that. Then you just need to check the State property of the recordset to see if the command is still executing or it's finished (open). In the API reference see ExecuteOptionEnum and ObjectStateEnum.
If you want to use events you have to bring VFPCOM to bind to the FetchProgress and/or FetchComplete events.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement