Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Subscript on ActiveX call
Message
From
29/07/2009 05:04:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Invalid Subscript on ActiveX call
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01415259
Message ID:
01415259
Views:
97
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.
Next
Reply
Map
View

Click here to load this message in the networking platform