Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress Bar
Message
 
À
25/03/2003 01:09:39
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00769590
Message ID:
00769626
Vues:
24
If you dim your recordset withevents, then you can use the fetchprogress event to build your progress bar... e.g.
Dim WithEvents rs As ADODB.Recordset

Private Sub rs_FetchProgress(ByVal Progress As Long, ByVal MaxProgress As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  Debug.Print Format(Progress / MaxProgress, "0%")
End Sub
>Dear All,
>
>After I sent a batch of SQL command to SQL Server, Is it possible to get a progress bar when the command is executing?
>
>Thanks
>Aston
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform