Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crazy Syntax Error (solved, but strange)
Message
 
To
18/03/2004 01:32:25
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00886890
Message ID:
00887533
Views:
11
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  && does not work
>
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform