Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing BoundTo property at instantiation
Message
From
04/11/1999 08:50:56
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Changing BoundTo property at instantiation
Miscellaneous
Thread ID:
00286783
Message ID:
00286783
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform