Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized View With Integer?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00058639
Message ID:
00058851
Views:
30
>>I have a parameterized view with two view parameters. One parameter is a string, the other an integer. I'd like to be able to select all records in the view, but when I leave the integer view parameter blank I get a "data type mismatch" error. Obviously, this is because the empty vp is being converted to a string. How do I make the view so that I don't have to put a value in the integer view parameter?
>
>What about converting the single integer view parameter into two integers that form a range search:
>
>WHERE column = ?vp_integer
>
>becomes
>
>WHERE column BETWEEN ?vp_integer1 AND ?vp_integer2.
>
>If you want to find a specific value set vp_integer1 = vp_integer2 = value
>To ignore the integer view parameter set vp_integer1 to something very small and vp_integer2 to something very large.
>
>-Mike

If you're using the view designer, define the parameter as an Integer using Query | View Parameters from the menu.
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Previous
Reply
Map
View

Click here to load this message in the networking platform