Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The object itself
Message
From
28/05/2007 15:09:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/05/2007 13:16:40
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01228871
Message ID:
01228903
Views:
12
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform