Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21396

[RESOLVED] Removing all Empty Rows from a FlexGrid

$
0
0
I m trying to remove all empty rows from a flexgrid, but it is giving error Subscript out of range, my code is as under
Code:

Dim dRow As Integer
    For dRow = 1 To fgData.Rows - 1

''  ERROR "Subscript out of range" while dRow=23

        If fgData.TextMatrix(dRow, 0) = "" Then
            fgData.RemoveItem dRow
        End If
    Next

Want to do this.
Attachment 94521
Attached Images
 

Viewing all articles
Browse latest Browse all 21396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>