Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with set filter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022865
Message ID:
00022930
Vues:
31
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform