Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot use variable with Inlist()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01009225
Message ID:
01010148
Vues:
42
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform