Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Subscript on ActiveX call
Message
De
29/07/2009 05:45:01
 
 
À
29/07/2009 05:04:11
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:
01415263
Vues:
40
Maybe the ActiveX control has a separate function to actually insert the cells? Or are the number of cells specified by the 0 and 3 parameters?

>I am getting an "Invalid Subscript Reference" error when trying to call a method on an ActiveX control.
>
>I've seen a few documented but mine relates to TxText;
>
>
>lnKey=otxText.TableInsert(4,3,-1)
>
>IF lnKey<0      && tables created
>  FOR lnRow=1 TO 4
>    FOR lnCol=1 TO 3
>      otxText.TableCellText(lnKey,lnRow,lnCol) ="Hello"         <-- this line generates error
>    ENDFOR
>    IF lnRow=1 .AND. tlHeader
>      FOR lnCol=1 TO 3
>        otxText.TableCellAttribute(lnKey,lnRow,lnCol,8)=1         <-- this line generates error
>      ENDFOR
>    ENDIF
>  ENDFOR
>ENDIF
>
>
>
>As I say I've found a few reports, but can't find a solution anywhere. Does anyone know of one?
>
>
>Gary.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform