Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View parameters
Message
From
23/11/1996 02:11:37
 
 
To
22/11/1996 21:52:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00013037
Message ID:
00013223
Views:
30
Chris,

>>I had to do something similar. In the view use LIKE for the comparitor.
>>then when the user selects ALL pass in % for the value of the parameter.
>
>
>Explain for me what you mean by %. Is it a literal or are you referring
>to a wildcard operator? (My keys are integer)
>

Sorry, some of my old SQL slipped in there. Here is the snippet:
Actually % isn't used, but "" as shown below. The view in this sample would have a filter:
color_field LIKE ?lcColor

#DEFINE ALL_LOC "(All)"

lcColor = IIF(THISFORM.cboColors.VALUE = ALL_LOC, "", ALLTRIM(THISFORM.cboColors.VALUE))

REQUERY("your_view")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform