Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INLIST() with variable?
Message
From
23/08/1999 13:13:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
INLIST() with variable?
Miscellaneous
Thread ID:
00256667
Message ID:
00256667
Views:
61
site = 'HSC'
This works:
?inlist(site,'xxx','HSC') && returns .T.

This does NOT work:
clist = "'xxx','HSC'"
?inlist(site,clist) && returns .F.

I need to have a dynamic list (e.g. clist = ...) so that
I can use this code to conditionally delete records. Not
sure why this will not work.

Any ideas or alternative solutions?
Next
Reply
Map
View

Click here to load this message in the networking platform