Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: With Collections or FOR EACH...
Message
From
28/10/2003 03:44:04
 
 
To
27/10/2003 08:40:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841263
Message ID:
00843405
Views:
21
Hi Tamar,

>
No, CustomDocumentProperties is an Office object. The example was meant to show that the loop variable had scope outside the loop.
I know there are some issues with FOR EACH.
>

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....

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform