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:
01009475
Vues:
18
This message has been marked as the solution to the initial question of the thread.
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
>When trying to run this code:
>
>brow for iif(empty(lcValue),isdigit(allt(ctag)),inlist(cTag,&lcValue))
>
>I get "Function argument value, type, or count invalid". In this instance the value of lcValue is empty. It seems like the IIf() is still evaluating the code. cTag is a field. Any ideas? I have to leave but will check back later.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform