Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing parametrized view on the fly (find form)
Message
From
19/04/2000 14:35:30
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00361044
Message ID:
00361455
Views:
20
SELECT Providers.iid, Providers.lname, ;
iif(UPPER(Providers.lname) = UPPER(?vp_lname),"A","B") as likelymatch,;
FROM rac!providers;
WHERE UPPER(?vp_lname)$UPPER(Providers.lname) ;
ORDER BY likelymatch,Providers.lname

If the lname begins with the string, the choice will be higher in the list, than if the string is contained somewhere in the lname. Using a cascading IIF, you could create a more levels of match likelihood. This example assumes you have set exact off, and uses only two match priorities (begins with AND is contained in)

Otherwise, you could try using the "Create View (viewname) As [select statment]" command to create the view- but it'll be tougher to manager the control sources of your grids if you are constantly deleting and recreating the view definition.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform