Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop down list
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00426273
Message ID:
00426282
Vues:
31
Try to call 'requery' method. If it not helps - write following code in requery of combobox and call it:

this.RowSource = ''
this.RowSourceType = 0

use in mycursor2

this.RowSourceType = 3
this.RowSource = 'SELECT ...'

HTH.


>I am using a drop down list box. It uses an sql statement (rowsourcetype = 3-sql statement) to populate the list part (rowsource). the sql statement is:
>select exp;
>from city_area_codes;
>where cl_city = city;
>into cursor mycursor2
>
>city is a public variable.
>now, if the value of city changes at some point, is there anyway to get the combo box to re-evaluate the sql statement so that the values in its drop down change?
>Thanks,
>Ryan
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform