Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crazy Syntax Error (solved, but strange)
Message
From
18/03/2004 01:32:25
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00886890
Message ID:
00887410
Views:
9
>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
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform