Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to delete objects in container before contaner initi
Message
De
25/01/2010 16:43:56
 
 
À
25/01/2010 13:58:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01445848
Message ID:
01445901
Vues:
57
>I have defined a class based on container whose methods need to refer very often to Codemine cursor objects which were created during thisform.load(), before the container class was instantiated.
>
>In order to have easy access to intellisense at development time, I have added a copy of the cursor classes to the container object. At runtime however, I don;t really want those cursor classes to become instantiated at all. Instead I want to create a property of the container with the same name to hold a reference to the cursor objects, which will have already been created by that time.
>
>I thought of returning .F. from the cursor init, but for some reason the cursor objects appear before their init runs.
>
>The question is how to delete objects placed in a container before they are initialized?

Trying this from the opposite direction - you added the cursor classes to have intellisense work - and are now fighting the side effects of that. Every time I've seen that mentioned previously, the object or variable defined was inside an IF .F. block (or at compiler level) so it never instantiated.

Chris.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform