Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Would THIS property can contain an array?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00101633
Message ID:
00101935
Vues:
17
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>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform