Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot use variable with Inlist()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009225
Message ID:
01010148
Views:
41
Chuck,

The square brackets are string delimiters along with single and double quotes. I ususaly use the square brackets when I've to build a string where expression includes the single or double quotes because it makes code more readable. In this case you could use the single or double quotes as well w/o sacrificing readbility..

>Thanks very much for this solution. I have not ever used brackets inplace of quotes, I did not realize that was syntactcally (is that a word??) correct. I usually do it the wat Ian suggested. But I gave you the solution because you answered first and I gave Ian a star for help because his was the same but later. I really appreciate being a member of the UT. This help have saved me a lot of time. Thank you both.
>
>>You're using macro substitution anyway, why not build the whole FOR condition?
lcForCond = iif(empty(lcValue), [isdigit(allt(ctag))], [inlist(cTag,] + lcValue + [)] )
>>BROWSE FOR &lcForCond
>>
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform