Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filtering count without cursor
Message
From
05/02/2009 08:52:44
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
05/02/2009 08:30:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01379421
Message ID:
01379434
Views:
19
Hi Tamar,

I do the same - mostly. There is a problem the way SELECT SQL end SET FILTER deal with the "==" operator.
Since I do not like to deal with the SET operators (ANSI??) I use LIKE instead.


Agnes


>>Hi all,
>>Can I run query and to retrive the rows count without cursor, or I must as following:
>>
>>local itotal
>>select distinct id from mytable;
>>	where between(mytable.id,1583,1927);
>>	and mytable.state=='NY' into cursor mycursor nofilter
>>itotal=reccount('mycursor')
>>myform.txt1.value=transform(itotal)
>>use in mycursor
>
>You could send the result to an array instead, and use ALEN() or _TALLY to see how many rows.
>
>Tamar
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform