Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Subscript on ActiveX call
Message
From
31/07/2009 00:45:56
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
29/07/2009 06:18:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01415259
Message ID:
01415595
Views:
52
>>> What is that ActiveX?
>>> Can I try it?
>
>It's TxTextControl there is an evalation copy available, http://www.textcontrol.com/downloads
>
>What I think is happening is that VFP does not like 3 values in the property assignment, so calling an ActiveX property like this
> control.CellText(1,1)="Hello"
>is fine, but
> control.CellText(LnHandle,1,1)="Hello"
>is not.
>
>I guess it sort of makes sense to VFP, I just can't think of a workaround.

The first workaround that comes to mind would be to get a reference to the object you are addressing - if it's some sort of a cell, and if you could get

oCells=control.Cells(lnHandle)

or something like that, i.e. something that would give you the object retrieved via the handle, and then you'd just address the cells inside that object without the need for three parameters. Analogously to having a reference to a range in Excel, and then going oRange.Cells(...) instead of oSheet.Range("some name").Cells(...), even though the latter works, even with more parameters, so I wouldn't say it's Fox. Though, Office may be a special case. Theoretically, it's possible that once upon a time the Office and the VFP teams were allowed to meet.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform