Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box with no ControlSource problem
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Combo box with no ControlSource problem
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01504238
Message ID:
01504238
Views:
124
Hi,

I can't seem to figure out why I am having this problem error.

I have a control based on a combo class. This control is used in two places on the form. In one place this control has ControlSource and in another the ControlSource is empty.

The RowSourceType is Field. And the RowSource is "V_CURSOR.DESC_FLD, PK_FLD" The cursor V_CURSOR exists.

The error I get on the line THISFORM.REFRESH() in the INIT method of the form. The error says "Cannot access the selected table V_CURSOR.DESC_FLD, PK_FLD" I think it has something to do with the form BindControls property.
What happens is that when these two controls are instantiated, the value of BindControls is .F. Then - after all controls are instantiated - the code sets the BindControls to .T. And then the Refresh() is called. I think .Refresh() actually "fires" the binding. But what I find strange is that problem is with the control that is not bound (has no value in ControlSource property) and not the other.

What am I missing?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform