Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Subscript on ActiveX call
Message
De
30/07/2009 09:04:40
 
 
À
30/07/2009 03:00:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01415259
Message ID:
01415503
Vues:
58
>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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform