Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing BoundTo property at instantiation
Message
De
04/11/1999 08:50:56
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Changing BoundTo property at instantiation
Divers
Thread ID:
00286783
Message ID:
00286783
Vues:
63
All,

I have a combo box class which I am using for lookup. The class can be used either on a form or in a column of a grid. The RowSource consists of two fields, a character description and an integer key, in a read only view. The combo box has a property to tell whether the combo is in a grid or not. If the combo box is in a Grid, I need the BoundColumn to be the Character field and BoundTo need to be false. If the combo box is on a form, the BoundColumn is the integer key and the BoundTo needs to be true.

In the Init method I assign the BoundTo and BoundColumn properties based on the value of lInGrid. When I run the form and the combo box is on the form, the combo box is initially blank. If I set the properties in the combo and remove the code from the Init, all works as expected.

Why can I not set the BoundTo property on the fly?
Am I missing something?

TIA

Rex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform