Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized view
Message
De
11/03/2002 10:16:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
11/03/2002 10:12:21
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00630955
Message ID:
00630957
Vues:
31
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform