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