Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating form when combo box is changed
Message
De
04/05/2001 12:32:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503574
Message ID:
00503601
Vues:
18
This is the code I have in the init event to populate the ComboBox:
SELECT MASTERSTATS
GO TOP
ThisForm.cboRequirement.ControlSource = 'Masterstats'
ThisForm.cboRequirement.ColumnCount = 1
ThisForm.cboRequirement.RowSourceType = 6
ThisForm.cboRequirement.RowSource = 'reqt_name'
Thisform.cboRequirement.Value = Masterstats.reqt_name
As of right now I don't have anything happening when the user selects a new value from the combo box.

Thanks!!!

========================================================

>Joe,
>
>The answer may depend on what is going on behind the form when user select item in the combobox.
>For example, if you have another listbox or combobox having rowsource that is changed, then you need again:
>...Listbox.RowSource="..."
>Or if you have a grid sitting on the temporary cursor and this cursor is recreated, then grid should be forced to have it:
>..Grid.Recordsource="...".
>In this case grid will loose any predefined column/header settings.
>
>
>Hope this will help
>
>
>
>
>>>>>>>>>>>>>>>>> your message below
>
>I have created a form that is populated from the INIT event. The objects on the form are populated from a temp cursor. I have a combo box on the form that is populated by a column in the table. This way the user can choose a different requirement...when they do, I want it to refresh the whole screen to reflect the data from the new record that was selected. I have tried putting Thisform.Refresh() in the Interactive Change event of the Combo Box as well as in the Valid and LostFocus events. None of these seem to be refreshing the screen.
>
>Could someone shed some light on this subject for me...
>
>Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform