Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box (Requery)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00571968
Message ID:
00571985
Vues:
27
Hi!

Jess, this could help, but one warning - when you do it by such way, the field specified in the ControlSource of the combobox will be marked as changed in the alias (buffered view), that require tableupdate() or tablerevert() to remove this mark.

The best approach to refresh the combobox displaying value after changes in its list (include Requery) is to use just Refresh method call, or use "combobox.ControlSource=combobox.ControlSource".

>>Hi guys!
>>
>>
>>I have a in a form combobox and the rowsource is an alias(teamgroup) created from a remote view. Everytime I edit a record from the form and change the corresponding value of the combobox, I update the table(teamgroup.used)to (.T.)
>>Then I start to requery the remote view(teamgroup). The view has a parameter that will only requery all records with teamgroup.used = .F.)
>>
>>Everytime I requery the table, the expected results should be those with (teamgroup.used = .F.). This exclude the record that I previously edited because I updated its used field to .T.
>>
>>the problem is that initial value of the combobox is not displayed anymore rather, it displays an empty value.
>>
>>any advice or help will be greatly appreciated.
>>
>>Thanks in advance...
>
>After requerying, you should have this line of code: Thisform.combobox.Value = teamgroup.yourdisplayfield then refresh.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform