Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can select records where in a cursor
Message
From
05/02/2002 19:25:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00615512
Message ID:
00615816
Views:
12
>Is is possible to use a cursor as the IN clause of the where clause of a select statement?
>

I have used this only once, and it worked. Here's the rework for your situation:

>
>Select * ;
>	from rsAllWos ;
>	where ascan(thisform.snptaskrange1.selecteditems, fk_task_id)#0 ;
>	into Cursor rsWoTaskSubset
>
Didn't try with an array property, you may need to copy it into a local array. As long as your list of IDs fits into an array, this should be OK. I figure the speed of this would fall with the square of the array length, but that's just a guesstimate.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform