At 15:29 06/12/03 +0100, Dave Crozier wrote: >Syntax >------ >vsFlexGrid.Cell(Setting As CellPropertySettings, [R1 As Long], [C1 As >Long], [R2 As Long], [C2 As Long]) [ = Value ]
Dave:
This is calling for (optionally) one or two Row,Colum pairs, presumably defining the sub-grid to be queried/set. Twould be nice if it specified what the default is for those you don't specify, but I'd assume that if you omit R2,C2 you get the single cell defined by R1,C1.
>If I put, for example oGrid.Cell(0,1,1) in the debugger I can see that >it has a value "". However when I assign it i.e >oGrid.Cell(0,1,1)="Title" I get back a VFP Error 31 - Invalid subscript >error.
You have defined Row 1 as 0 (an invalid coordinate in VFP), and have not specified Column 2 (presumably zero by default). Your debug value of empty looks like an "I don't know what you mean" result.
Try oGrid.Cell(1,1)="Title", and see what you get.
Dan Covill
©2003 Dan Covill |