Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing status bar SQL results
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00162975
Message ID:
00162978
Views:
18
>Try any sql query such as this:
>sele dist alltrim(accountno) as x,count(*)as counts from customer group by x order by counts desc
>?_vfp.statusbar
>
>Selected 24265 records in 0.78 seconds
>
>However, if I try to set this to a variable I get this number every time.
>
>sele dist alltrim(accountno) as x,count(*)as counts from customer group by x order by counts desc
>x = _vfp.statusbar
>?x
>2252385

If you want to check number of selected records, then use _TALLY or RECCOUNT(). Also, it seems to me redundant to have DISTINCT and GROUP together.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform