Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select-SQL IN() behavior
Message
From
22/05/2003 14:53:02
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00791797
Message ID:
00791843
Views:
20
This is the third reply. I added ' ' and ',' to the
criteria and I was able to filter the data properly.
Thank you for the help.

>Use this instead:
>select * from test where iif(empty(x),.t.,f1$x)
>select * from test where iif(x='none',.t.,f1$x)
>
>>Is this normal VFP (7 or 8) Select-SQL behavior?
>>
>>create cursor test (f1 i)
>>for i = 1 to 10
>>	insert into test values (i)
>>endfor
>>x='1,2,3,4,5'
>>*!*	x=''  && uncomment to cause an error
>>select * from test where iif(empty(x),.t.,f1 in (&x))
>>*!*	x='none'  && uncomment to cause an error
>>select * from test where iif(x='none',.t.,f1 in (&x))
>>
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform