Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting Records
Message
From
25/07/2003 06:55:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813427
Message ID:
00813432
Views:
6
Neil

from the help file
COUNT
[Scope] [FOR lExpression1] [WHILE lExpression2]
[TO VarName]
[NOOPTIMIZE]

So in your example don't put in a field name.
Count refers to records so the field name is meaningless.
You would only have the fieldname if using a condition like for or while


so you have

Count ALL to lccount

will work

Nick
>Hi Nicholas
>
>I have tried the count command and I am having no joy
>
>
>local lccount
>Count ALL result.mainkey to lccount
>? lccount
>
>
>I get an unrecognised error problem. My cursor is named result and the field I want to count is mainkey. Any ideas?
>
>Many Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform