Sorry,
I use VB6 in windowsXP. I have a dbase table in a DBGRID control (data base is bound to DBgrid control). I want to obtain certain values from the grid. I use the following code
for rowNum=1 to NumberOfRows
grid.row= rowNum
grid.col= ColNum
x=grid.text ' the value I need is in x
next rowNum
This works fine for the first 4 rows (4 rows are visible on my grid) but when rowNum is 5, I get run time error 6148 - invalid row number. What can I do to get the values that I need?
Any help would be greatly appreciated...
By Alonsher