Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How would i make a progress meter when querying SQL Ser
Message
De
26/06/2007 18:49:42
 
 
À
26/06/2007 17:50:23
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01235872
Message ID:
01235881
Vues:
18
>How could I have Visual Foxpro display an accurate progress meter that reveals to a user the percentage of the query completed. Foxpro does this for you when it is XBase data. How do I make a progress meter when I am querying against SQL Server data?
>
>Dave.

I'm not an expert in SQL, but about the only way I can think of is

1. you need to know the number of records in the table you're querying, and then
2. add an 'and' clause to your where clause that calls a function that returns .T. In the function you would increment a counter, and put the progress bar on the screen.

Thing is, you need to know the total number of records in order to do the percentage calculation just as you do when you create any progress bar.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform