Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wildcards in parameterized views
Message
From
25/02/2002 14:29:38
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00624645
Message ID:
00624703
Views:
10
for a specific value of "ABC" cparam = "ABC"

for all values that start with an "A", cparam = "A%"

for all values cparam = "%"

SELECT * FROM table WHERE column LIKE ?cparam

>Well, I'm actually doing this with a graphical view....I have a remote view with the parameter of cPeriod c(20). Most of the time, I want to only retrieve data with one particular period. However, I had hoped to be able to pass, rather than the specific period, a wildcard to indicate the whole file should be retrieved. The alternative to this is to create an identical view without the parameter, but that seemed inefficient to me. Normally, I would do just that, but the view is full of joins, etc, which (to my knowledge) must be manually copied into a new view.
>
>Hope that clarifies things a bit. If I'm doing this all wrong, I'm definitely open to better suggestions!
Previous
Reply
Map
View

Click here to load this message in the networking platform