提示下标越界
Private Sub MSHFlexGrid1_Click()Dim c As Integer
Dim r As Integer
Dim i As Integer
r = MSHFlexGrid1.Row
For i = 0 To MSHFlexGrid1.Cols
c = i + 1
Text1(i) = MSHFlexGrid1.TextMatrix(r, c)
Next i
End Sub
text1数组是0-6,MSHFlexGrid1表格是1-7 老提示下标越界,需要显示第2-7列数据