Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Destroy Method not firing
Message
De
04/01/2010 18:18:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/01/2010 18:06:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01442014
Message ID:
01442018
Vues:
38
This message has been marked as a message which has helped to the initial question of the thread.
>In the INIT method of a form I have
>thisform.oDataClass = NEWOBJECT("class",library)
>DO CASE
>   CASE somethin
>         some code
>   CASE something else
>         some else code
>   OTHERWISE
>         different code
>ENDCASE
>
>RETURN .F.
>
>When I trace the code I can see everything executing properly.
>
>When the RETURN statment is fired the oDataClass.Destroy method is the next one executed.
>
>There is no code in the Destroy method for this form, but there is code in the form's base class. But the form's Destroy method never seems to get executed. Is there something here that prevent's the form's Destroy method from executing?
>
>Thanks...........Rich

Yes, I believe that if you return .F. in Form.Init(), the form closes without doing anything else.
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