Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Boxes
Message
De
16/10/2001 10:33:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Combo Boxes
Divers
Thread ID:
00569018
Message ID:
00569018
Vues:
52
I'm trying to tie the same combo box to different data sources programmatically. Sort of a reusable combo box. Different actions make the combo box do different things. Here's what I've tried:

1 thisform.cmbTemp.Style = 2
2 thisform.cmbTemp.RowSourceType = 6
->3 thisform.cmbTemp.ControlSource = queries.name
4 thisform.cmbTemp.RowSource = name
5 thisform.cmbTemp.visible = .t.

The table is 'queries' and the field is 'name'. I'm simply trying to list all of the names in the combo box. Queries is an alias that is open at the time of instantiation.

Here's what I get:

With RowSourceType = 2 or 6

"The data source for this object must be a variable reference." on line 3.

Any Ideas?

Tom Welch
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform