Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recno() Order
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00442673
Message ID:
00442683
Vues:
14
>As I scan through a file I was thinking of showing a wait window that shows recno() of reccount(). I understand that this won't do me much good, unless I can scan the file in recno() order. Is there a way to do this?
>
>Thanks,
>Paul

Reccount() should not change so put it to a variable and use it instead of calling reccount() so often.

If you have no index then the table should be in recno() order. So instead of using recno() set an index variable that you add 1 to as you go through the scan.

Local i, TotalCount

TotalCount = RECCOUNT()

FOR i = 1 to TotalCount & is one way
display i and TotalCount the way you want.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform