Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count to
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01272696
Message ID:
01272698
Views:
13
>it takes a long time before the two messageboxes below
>
>(more than 1 minute)
>
>
>= MESSAGEBOX ("before count")
>
> SELECT CL
> COUNT TO IMP_SELECT
>
> = MESSAGEBOX ("after count")
>
>the table has about 10,000 records
>
>Is the a better way to count records ?

Do you have filters affecting the speed?

The other way would be

select count(*) from MyTable into array laCounts

?laCounts[1]

but this would not respect the changes made to the table if it's in buffered mode nor would it respect current filters.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform