Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box on form without open table issue
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01314170
Message ID:
01314374
Views:
8
>>>
>>>It is the expected behavior for form.BindControls = .F.
>>>All controls show their initial values, nothing more.
>>>
>>
>>I didn't know that. Thank you for the explanation.
>
>In addition:
>If you are using form.BindControls = .F. just to speed up the form loading, then set form.BindControls = .T. in the form.activate event.

I understand. The reason I initially thought about setting this.BindControls to .F. was so that the form would be opened without any cursor or table (even though controls are bound to a cursor). Then the user would select the criteria for SQL Select WHERE and the cursor would be populated. This didn't work, as the combo that was part of the user selection criteria didn't have a pulldown (hence my posting this message). So I what I do now is get an empty cursor first which allows the BindControls to be set to .T.. Then user can specify the selection criteria and populate/fill the cursor for the form controls.

Thank you, Yuri.
"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
Previous
Reply
Map
View

Click here to load this message in the networking platform