Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GATHER NAME problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00806421
Message ID:
00806870
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform