>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.
Are you sure that otxText.TableInsert(4,3,-1) returns negative value if succeeded?
Usually negative values are returned when something fail.
IF lnKey<0
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.