Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bomb out of form at Init()
Message
De
01/07/2004 13:29:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00919029
Message ID:
00919728
Vues:
16
>>>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform