Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically Creating a INLIST() command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00521014
Message ID:
00521019
Views:
17
>I would like to create a inlist() search string on the fly. In my attempts, I have been unsuccessful. For example:
>
>ctemp = 'V'
>cstring = "'V','X'"
>
>if inlist(ctemp,cstring)

Change this line to

if inlist(ctemp,&cstring) using macro substitution.

>? "SUCCESSFUL"
>else
>? "FAILED"
>endif
>
>This code runs without error but always returns false. Can anyone help.
>
>TIA,
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform