Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically Creating a INLIST() command
Message
De
19/06/2001 10:32:10
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00521014
Message ID:
00521020
Vues:
16
Hi Jeff try the following

ctemp = 'V'
cstring = "'V','X'"
if inlist(ctemp,&cstring)
? "SUCCESSFUL"
else
? "FAILED"
endif


>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)
>? "SUCCESSFUL"
>else
>? "FAILED"
>endif
>
>This code runs without error but always returns false. Can anyone help.
>
>TIA,
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform