I have a question about MsFlexGrid VB6. I have a grid containing coordinates of objects vertices. So for example, if I have 4 objects each one with 3 vertices, the number of rows is 4*3=12. What I would like to do is:
Loop through every three rows (the number of vertices) and get the maximum value and then have it appear in a MsgBox and then move to the next three vertices and do the same.
Is this possible?
Assuming your values are in the first column, you can do something like this:
If your MsFlexGrid has row/column headers (fixed rows/columns) that you'd like to skip, you would need to adjust the above code. For example, make the loop start with
1
instead of0
if you have one fixed row. And useMSFlexGrid1.TextMatrix(i, 1)
if you have one fixed column before the actual data.