Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: With Collections or FOR EACH...
Message
De
28/10/2003 10:42:22
 
 
À
28/10/2003 03:44:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841263
Message ID:
00843553
Vues:
25
>It is odd that the behaviour should be different in these cases. I don't think I've ever seen the variable stay in scope when dealing with native foxpro collections (including built in ones) but, equally, I looked at some old word automation that I did and it seemed to work everywhere. I wonder if the difference is simply between dealing with COM objects or VFP ones ? Or, if not, what....
>

I've used the same strategy with Fox collections over the years, though I don't have an example at hand. There's nothing magical about FOR EACH that makes the variable go out of scope when it ends, any more than the loop variable of a regular FOR loop goes out of scope.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform