Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Subscript on ActiveX call
Message
From
30/07/2009 03:00:05
 
 
To
29/07/2009 18:40:12
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:
01415474
Views:
62
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.

Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform