Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bind the combobox
Message
De
23/04/2007 08:48:33
 
 
À
23/04/2007 08:36:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01218463
Message ID:
01218832
Vues:
17
The combobox is read-only, it is used to select the insurer to process.

What I'm trying to accomplish is to bind the value displayed in the combobox to the currently selected value in a grid. When the user select a insurer in the grid, I want the combobox to display the selected insurer. The AfterRowColChange event of the grid call a method that move the record pointer of the table the combobox is bound to (via the RowSource) and call the combobox Refresh () method.

The other way I have in mind to bind them is to loop through the values of the combobox until I find a match, but I hope that there is a better way to do this.

>Setting ControlSource=RowSource is a bad idea.
>
>RowSource determines the contents of the combo, that is, what the list of items is. ControlSource determines where the initial value comes from and where the value is stored as choices are made from the combo. When they're the same, you're going to get weird behavior.
>
>What are you trying to accomplish here?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform