Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recno() Order
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00442673
Message ID:
00442683
Views:
7
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform