Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box with no ControlSource problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01504238
Message ID:
01504249
Views:
45
>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?

I never call refresh from the Init.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform