Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Would THIS property can contain an array?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00101633
Message ID:
00102037
Views:
53
>Hi Jim,
>
>>THIS is a reserved word in VFP as an object reference to the current object. THISFORM, and THISFORMSET are also reserved. So I don't think you will succeed at creating a property named THIS.
>
>This one is a very interesting one. VFP5 allows to create property names with "this" and it even allows for array with names "this[1]"
>
>In VFP6 you could do the same. The fun comes when you create a method for this_access in VFP6. As the usual behaviour the method is triggered when the user accesses any property of the object. VFP6 displays the Access checkbox as ON when you see the property in the edit properties dialog but uses the this_acces for the entire object and calls it just once... which is how it should have been.
>
>I think the developers should be restricted from creating these property names.<g>
Kamal,

xBase has never stopped us from using keywords. It's sort of like we've been handed a 44 magnum and can either aim at the target or at our own foot. :-)
Previous
Reply
Map
View

Click here to load this message in the networking platform