Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crazy Syntax Error (solved, but strange)
Message
 
À
18/03/2004 01:32:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00886890
Message ID:
00887533
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform