Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing parametrized view on the fly (find form)
Message
De
20/04/2000 07:21:37
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00361044
Message ID:
00361716
Vues:
17
Alex,

Use the LIKE version:

If you want BEGINS with -> vp_Name = "rob%"
If you want CONTAINS -> vp_Name - "%rob%"

HTH

Rex

>Is it possible to modify the sql of a view on the fly?
>
>I have a find form and I would like to give the option of searching based on:
>
>SELECT Providers.iid, Providers.lname;
> FROM rac!providers;
> WHERE UPPER(Providers.lname) = UPPER(?vp_lname);
> ORDER BY Providers.lname
>
>or:
>
>SELECT Providers.iid, Providers.lname;
> FROM rac!providers;
> WHERE UPPER(Providers.lname) Like UPPER(?vp_lname); && like instead of '='
> ORDER BY Providers.lname
>
>This means that they can search all providers whose names start with "rob" or all providers whose names CONTAIN the string "rob".
>
>Or perhaps there are other ways to accomplish this?
>
>Thanks!
>
>Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform