Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The object itself
Message
De
28/05/2007 15:09:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/05/2007 13:16:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01228871
Message ID:
01228903
Vues:
17
>I don't know of a way innate to VFP, but in the init, I like to add a property called self to my objects.
>
>This.AddProperty('Self', This)
>
>Then, of course, it's easy to send .self as a parameter withing a with...endwith.

Interesting option. - Although I think it won't work in my particular case: the object was a reference to a range of cells in Excel, and I doubt I can add properties. But I will remember this trick for other cases.
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