Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL filters
Message
De
31/01/2006 15:59:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01078076
Message ID:
01092055
Vues:
20
>>If I set a filter as in:
>>
>>set filter to loc_id = 'A-21'
>>browse
>>
>>the result will correctly show one record.
>>But if I issue:
>>
>>set exact on
>>set filter to loc_id = 'A-21'
>>filterstr = filter()
>>select * where &filterstr
>>
>>the result returns A-21, A-219, A-216, A-213 etc. Which is not what we want.
>>
>>This can be overcome by setting the initial filter as:
>>set filter to loc_id == 'A-21'
>>
>>but this construct is difficult in my situation. Is there another solution?
>>
>>Thanks
>
>Hi Don,
>Try
>
SET ANSI ON
>set filter to loc_id = 'A-21'
>filterstr = filter()
>select * where &filterstr
Borislav & Vladimir -
Thanks for your help on this one. Vladimir's approach solved my problem.
- Don
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform