Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug? Calling methods in object returned by access method
Message
From
20/02/2003 15:26:24
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00755131
Message ID:
00755724
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform