Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controls Unbinding
Message
De
21/08/2001 09:56:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/08/2001 09:39:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00546687
Message ID:
00546698
Vues:
25
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform