Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select - sql trouble
Message
From
18/11/1999 17:53:25
 
 
To
18/11/1999 16:48:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00292685
Message ID:
00292771
Views:
25
>cVar = ""
>for i = 1 to alen(aArray)
> cVar = iif(empty(cVar), '("'+aArray(i)+'"',cVar+',"'+aArray(i)+'"')
>next i
>cVar = cVar + ')'
>select x1, x2 from dbx!tablex ;
> where tablex.x1 in (cVar)
>
>This doesn't work too. I will use UDF.
>
>Thank you very much for your help.

You would have to specify

SELECT .... IN (array[1],array[2],array[3],...)

But the UDF will probably be a better solution for you.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform