Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why form goes from LOAD to UNLOAD?
Message
De
18/03/2008 18:52:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01302978
Message ID:
01303206
Vues:
11
>I am doing major rework on one of the forms and hitting the following problem:
>
>I set SET STEP ON in the LOAD method. As I step through the code in LOAD, it jumps at the end of LOAD directly to UNLOAD and then showing an error that one of the textboxes was not instantiated.
>
>Shouldn't it go to INIT method after LOAD?

The order of events is:

Form Load()
Init() for contained objects
Form Init()

Perhaps you have no code in Form.Init().

If it jumps directly to Unload(), it sounds as if the Form.Load() method returned .F., or for some other reason the form couldn't start.
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