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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only