Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized view on an INLIST
Message
From
25/05/2001 07:14:31
 
 
To
25/05/2001 07:01:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00511400
Message ID:
00511401
Views:
20
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform