Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INLIST() with variable?
Message
From
24/08/1999 12:24:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/08/1999 13:13:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00256667
Message ID:
00257144
Views:
25
>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?
Why doesn't work and how would work has already been told at its best.
Alternative solution might be SQL delete. As I read your "conditionally delete" I sensed you first do an SQL to collect the list :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform