Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bomb out of form at Init()
Message
From
01/07/2004 13:29:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00919029
Message ID:
00919728
Views:
15
>>>If you do any kind of cleanup in the Destroy, then you'd be in trouble.
>>
>>Thanks, that is quite logical. But wouldn't the cleanup usually only be relevant if the form was properly initialized?
>
>Not necessarily. If your form uses a default datasession, and you opened a table in the Load or Init, you wouldn't be able to make sure you close it in the Destroy.

That is right; I understand that usually, Form.Load() or the DE are the best place to open tables in code; and both happen before the Init().

This wouldn't be the usual case for me, though, since I use private datasessions almost exclusively.
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
Reply
Map
View

Click here to load this message in the networking platform