Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abnormal behavior of INLIST command
Message
From
27/06/2005 12:39:02
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026745
Message ID:
01026760
Views:
23
Thanks Borislav.

Yiorgos

>>mylist1='"a1","a2 ",...,"a12"'
>>mylist2='"b1","b2 ",...,"b14"'
>>
>>It works: select * from mytable WHERE INLIST(field1,&mylist1 ) '
>>It works: select * from mytable WHERE INLIST(field2,&mylist2 ) '
>>It does not work:
>>select * from mytable WHERE (INLIST(field1,&mylist1 ) or INLIST(field2,&mylist2 ))
>>
>>However it works when the arquments in mylist1 and mylist2 are less than 6.
>>It is supposed that the arquments in the INLIST command can be up to 24
>>
>>Thanks,
>>Yiorgos
>
>
>Try this:
>
>mywhere1='INLIST(Field1,"a1","a2 ",...,"a12")'
>mywhere2='INLIST(Field2,"b1","b2 ",...,"b14")'
>
>select * from mytable  WHERE &mywhere1
>select * from mytable  WHERE &mywhere2
>select * from mytable  WHERE (&mywhere1 OR &mywhere2)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform