I am looking to use the iGrid ActiveX with dBase (www.dbase.com). So far, everything is working except for one problem I have not been able to solve. All attempts to set a value or property in this format fail:
For lRow = 1 To 10
.AddRow
.CellValue(lRow, 1) = lRow & ", 1"
.CellValue(lRow, 2) = lRow & ", 2"
Next
The problem seems to be that dBase does not resolve the syntax for an object array using CellValue(x,y) = "Text". It interprets this simply as a function.
I've tested the AddCol method, since it returns the object reference for the header. I am able to successfully change any property I need using this syntax:
ObjCol1 = iGrig.AddCol("COL1","Column 1",50)
ObjCol1.eAlignh = 2
What I *think* I need is something that would give me an object reference to the cell, so that I can then get or set the properties the same way I do with the Column. In code, it would look like this (for dBase):
Obj = CellReference( nRow, nCol) ** object reference to the cell object at that row/column
Obj.CellValue = “Value I want to set”
Does such a function exist? If not, are there any other ways for me to address the cell other than Cellvalue(x,y)?
Many thanks in advance for your help!
Jan
Edited by moderator
2015-02-09T09:19:25Z
|
Reason: Igor/10Tec added detailed post description