Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screen won't close in VFP 7.0, but did in 6.0...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00655728
Message ID:
00657107
Views:
29
Hey guys,

I got my screen closed, thanks to hints I got here.

The WITH...ENDWITH trouble seen by some other folks started me looking in more specific areas. I narrowed it down to FOR EACH statements I was using to scan through ListView items. I changed the FOR EACH to use a local variable reference instead of the full name reference, and all of my problems went away. So, I went from something like:

FOR EACH Item IN THISFORM.ListView.ListItems
.
.
ENDFOR

to

LOCAL loPointer
loPointer = THISFORM.ListView.ListItems
FOR EACH Item IN loPointer
.
ENDFOR

And it worked! Didn't even have to explicitly RELEASE loPointer...just the local going out of scope must have been good enough.

It would appear that VFP 7.0 has trouble with implicit references in WITH...ENDWITH and FOR EACH statements when ActiveX controls are being used. Has anyone started a full thread on this specific topic? Is this a bug?

Thanks for all your help, guys...it is good to have this one worked out!

Thanks,
JoeK
Previous
Reply
Map
View

Click here to load this message in the networking platform