Page 1 of 1

Error in my example Activex control

Posted: Tue Jun 15, 2010 3:52 pm
by jparada
Hi,

I'm trying to do some tests with an Activex control (iGrid of 10Tec company), and according to the examples and documentation, I do something like this to generate columns and cells.

Code: Select all

With Object iGrid		
     :AddCol(sKey:="firstname", sheader:="First Name", lWidth:=120)
     :AddCol(sKey:="phonenumber", sheader:="Phone", lWidth:=75)
     :AddRow()
     :CellValue(1, "firstname") :="text row:1"
End With
When I try to compile it generates the error: Error E0022 Invalid lvalue ':'

The error is in the following line :CellValue (1, "firstname") := "text row 1", as I already said, according to the documentation this would be the way to insert text into a cell.

The question is, if it is the correct syntax, how to avoid the error.

I appreciate any help/advice.

Thanks

PS: If I remove the line where the error is generated, then the example works correctly.

Best Regards
Javier