Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why form goes from LOAD to UNLOAD?
Message
From
18/03/2008 18:52:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01302978
Message ID:
01303206
Views:
10
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform