Hi Mike,
>Here's one for VFP 6 SP3:
Yep, I reported that one in November 1998. The problem is that it's not clear whether it is a bug, or not. WITH...ENDWITH is a shortcut. The object reference is evaluated properly via the Access methods, but then VFP stores this pointer internally. Any further access is done via this internal pointer and without resolving the object reference again.
On the one hand, this behavior is what makes WITH...ENDWITH so fast, on the other hand it rendes the THIS_ACCESS method almost useless, especially if you return different object references from this method, because you can hardly guarantee that the object is never accesses within a WITH construct, especially not when your generic code or a framework is involved.
Christof
--
Christof