Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized view on an INLIST
Message
 
 
À
25/05/2001 07:01:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00511400
Message ID:
00511401
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Hi!

Try following:

SELECT *;
FROM Table;
WHERE INLIST(Field, ?&gcFieldTypes)

or even

gcFilter = "INLIST(Field, " + gcFieldTypes + ")"



SELECT *;
FROM Table;
WHERE ?&gcFieldTypes


I do not remember, however, if it should be '?&' or '&?', but there are only 2 combinations ;)


HTH.

>Hi
>
>I have a view that needs to be parameterized on an INLIST function, and I want to specify the INLIST contents with a Public Variable.
>
>So I tried setting the View up as:
>
>SELECT *;
> FROM Table;
> WHERE INLIST(Field, &gcFieldTypes)
>
>But with no joy.
>
>Any ideas on how I can achieve this, I do get the error, "Missing Operand".
>
>Thanks
>Kev
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform