Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplify 2 selects
Message
From
19/01/2007 14:05:31
 
 
To
19/01/2007 13:51:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01187112
Message ID:
01187133
Views:
18
>Anybody know if the following code could be simplified?
>
>select dist site_id from training into cursor crstemp
>select dist reccount() as sitesrepresented from crstemp into array aSitesRepresented
>
>
>The need is to get a single number that will be used in a report. The above works and the array appears to be global, but I was not overly comfortable with the solution.
>
>Thanks
select dist site_id from training into cursor crstemp_1 order by site_id
select recno() as Id, site_id from crstemp_1 into cursor crstemp order by 1
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform