I made a program which has several tabs, and on these tabs are Sheridan Grids (SSOleDBGrids). When the user submits the form, I am using this code to loop through them to retrieve any information entered:
For X = 0 To grid.Rows - 1
grid.Row = X
grid.Col = 0
S = grid.ActiveCell.Text
Next X
When I run the program, it works great, as long as I activate every tab at least once. If not, I get a "Run-Time error '381' Invalid property array index" message.
For X = 0 To grid.Rows - 1
grid.Row = X
grid.Col = 0
S = grid.ActiveCell.Text
Next X
When I run the program, it works great, as long as I activate every tab at least once. If not, I get a "Run-Time error '381' Invalid property array index" message.