Thanks for driving this nail! The nuances of VFP-VBA are always intresting. It would be neat to be able to predict which COM properties required an inderect (or full heritage) reference.
I've also noticed this with Word.
>>I've noticed this also with Excel COM - some properties require all their ancestors...
>
>Yes, but in this case the entire list of ancestors:
>
>chart.Axis(2).Step = 1
>
>fails, except when I put that line outside the original prg.
>
>>...But it is [very] interesting that "STORE" overcame the necessity for a family reunion. Very interesting - wunder why?
>
>Obviously, the value assignment using indirect reference
>
>STORE 1 TO ('.Step')
>
>forces an evaluate which gets around the problem, although direct reference of the property
>
>STORE 1 TO .Step
>
>fails with Syntax Error just like the first example above.
>
>Note that indirect reference to the property only works on the right side of a value assignment (STORE TO syntax) but not on the left:
>
>('.Step') = 1
>
Imagination is more important than knowledge