i have a flexgrid...
lets say i have 3 columns..and 3 rows..
there are items such as letter G and L in each cell of the grid...
i want my system to analyze every rows..
the analyze here means:
if theres a G/L(or more) on a row,the system will count the G/L that as
its the same for the second row,if theres a G/L(or more),the system
increase the count to 2...
and so on....
even if the row has more than one G/L
it count it as one
and the result of this count will be displayed...
from my flexgrid tht i enclosed here, i want the result to be like this :
L = 1, G = 2
my problem is how to the calculation of the G/L in the flexgrid???
i'm really new in VB
and i really wanna use flexgrid...
i enclose my code here (that is not work)
visual basic code:
For X = 0 To MSFlexGrid1.Rows - 1
For K = 0 To MSFlexGrid1.Cols - 1
' If MSFlexGrid1.TextMatrix(X, K) = "L" Then
' l = l + 1
' ElseIf MSFlexGrid1.TextMatrix(X, K) = "G" Then
' m = m + 1
' End If
For i = 0 To i = 1
If MSFlexGrid1.TextMatrix(X, K) = "L" Then
i = i + 1
For j = 0 To j = 1
If MSFlexGrid1.TextMatrix(X, K) = "G" Then
j = j + 1