Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with set filter
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00022865
Message ID:
00022930
Views:
35
>I'm currently using VFP 3.0. When I design a Form which contain a ListBox and some CommandButton. In one of the CommandButton I use set filter as follows:
>
>set filter to = ThisForm.Combo1.Value
>Report Form to printer
>
>All I want to do is to print out an individual's report by client's choice. However, it gives me all the records in the table. I try many different ways, I know the code is fine because it works on my other Form which print an individual report. It has to be something simple but I can't figure it out!! Any help with be appreciate!!

try

set filter to =thisform.combo1.listitem

should work. Value doesn't return the selected value of the combo box until I think you issue a requery. Listitem property is better to use with combo and list boxes.
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Reply
Map
View

Click here to load this message in the networking platform