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
> 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.