Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controls Unbinding
Message
From
21/08/2001 09:56:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/08/2001 09:39:55
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00546687
Message ID:
00546698
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>
>When I open my main form all the controls are bound to a cursor that is created in a procedure that is called in the init of the form. I am getting an error saying that the controls are being unbound. I checked, and the procedure that will create the cursor is not yet being called. In all the other programs I've done this way the controls seen to wait till that procedure is called. This is a
>program that I inherited that was still in development. I can't seem to find what they had done to cause the controls to react before the FORM.init completes. I connect to the database in the FORM.init. And the procedure use SPT to retrieve the data into the cursor. Any idea what the differance is?
>
>TIA
>MIKE

Open your tables/cursors in Form.Load().

Explanation: Form.Load() is executed before the objects contained on the form are initialized; Init(), afterwards.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform