Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Subscript on ActiveX call
Message
From
30/07/2009 09:04:40
 
 
To
30/07/2009 03:00:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01415259
Message ID:
01415503
Views:
56
>I have isolated what the problem is;
>
>When setting a property value on an ActiveX control VFP will allow only 2 parameters within the brackets.
>
>So this is ok
>
>MyObject.Property(x,y)=1
>
>this is not
>
>MyObject.Property(x,y,z)=1
>
>VFP seems to see the second example as a 3 dimensional array which it obviously does not support. This behaviour can be replicated with a few different ActiveX controls and I have found examples going back to VFP5.
>
>For my own issue I have had to build a data table in raw RTF and then paste it into the txText control. I don't see that there is a generic work around that would help here.
>
>Thanks for all your help.

Just a thought, what if you tried the following:

loObject = "MyObject.Property(x,y,z)"
&loObject = 1

or

(loObject) = 1

Try using macro substitution -- VFP may behave differently...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform