Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Requery combo boxes
Message
 
À
08/05/2001 13:07:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00504831
Message ID:
00504851
Vues:
24
>I am having problems displaying new values in my combo boxes after a method that I have created on my form.
>
>I have a combo box that has a rowsource of:
>
>select products.product from products into cursor lproducts order by product
>
>the control source is: m.product
>
>In my method I have a select sql statement:
>
>I pass it a value depending on what hotkey a user presses
>
>parameter m.hotter
>
>select hotlist.hotlistid, clients.clientname, grades.grade, products.product;
>from hotlist, clients, products, grades;
>where hotlist.hotlistid = hotter;
> and hotlist.client = clients.clientcode;
> and hotlist.prodcode = products.prodcode;
> and hotlist.gradecode = grades.gradecode;
>into cursor cltest
>
>select cltest
>scatter memvar
>
>thisform.refresh
>
>I then want the product combo box to display the new product but it doesn't do it until I tab into the combo box. How do I get it to do it immediately?
>
>TIA,
>Tyler

Hi Tyler,

The right way to have the fresh value in a combo is
mycombo.Requery()
mycombo.Refresh()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform