Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GATHER NAME problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00806421
Message ID:
00806870
Views:
22
Hi Jamie,

>...somewhere that the use of a collection and FOR EACH made good sense and it is buggy


Oddly enough I hit another similar problem later in the day. I had a collection of objects one of whose properties was a reference to another object. After building the collection some of the original references to these 'inner' contained objects were released. Subsequently attempting to access these objects via the collection produced confusing results. E.g:
ISNULL(Object)  && .F.
TYPE("Object")  && "O"
? Object.Name   && (Access some property) - ERROR
? TYPE("Object.Name")  && "U" 
In the end I was reduced to using the last line above as a basis to determine whether the object actually existed. I would have expected either
(a) the object to remain instantiated because a reference to it was held in the collection or (b) (and less likely) the collection reference to be .NULLed.

Oh Well, Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform