Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized view
Message
From
11/03/2002 10:16:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/03/2002 10:12:21
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00630955
Message ID:
00630957
Views:
25
>I'm trying to use [^y]% as a filter parameter to create a view that only returns records begining with y. I learned somewhere that this should be possible. However, i can't seem to make it work.
>Does anybody have an idee what i'm talking about and how to make this work??
>
>thanks.

The way I create paramerized views in VFP is with ?variable, in the view designer, which would generate the expression: WHERE Field = ?Variable. Then, you have to assign a value to your variable.

If this is fixed (you always want records that start with "y", and no other letter), use a clause like WHERE left(Field,1) = "y". This may need some tweaking, for optimization. You can also use WHERE Field = "y", but this only works with SET EXACT OFF.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform