Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug? Calling methods in object returned by access method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00755131
Message ID:
00755724
Vues:
15
Armin,

Forgive me if I am missing something but I don't see why much of this code should work at all. For example, in the Test method you are have the following line of code:

THIS.uProp(1).Add("1")

To be honest I don't understand why this line even executes and doesn't raise an error. As far as I can tell uProp(1) doesn't refence oCollection and Arrays don't have an Add method. I have also noticed that if you remove the oCollection property this line of code does error. If this.uProp(1) contained a reference to an instance of TestCollection it would be a different story.

Are you using a documented feature that I am not aware or is this code taking advantage of an anomaly in VFP?

Cameron Slade
Visual Studio Test Manager
Microsoft
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform