Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matrix from flexgrid 1

Status
Not open for further replies.

JasonV

MIS
Jun 9, 1999
10
0
0
US
Hi,<br>
I'm using VB6 and have a flexgrid on a form. I have 3 columns( Name, Class, Qualified) in the grid. I want to be able to take these 3 and create a matrix out of them. Qualified gets an 'x' if true else left blank. AN example of how i want it:<br>
<br>
Class1 Class2 Class3<br>
Jason x x x<br>
Joe x x <br>
Sarah x
 
Ok, so it didn't format the way I wanted it to, but I hope you get the ideas of what I'm looking for.
 
The flexgrid is per se a matrix,<br>
but you can use a small function to reference it as x,y<br>
<br>
Function fgi(r As Integer, c As Integer, tot As Integer) As Integer<br>
fgi = c + tot * r<br>
End Function<br>
<br>
FGd.TextArray(fgi([FGd.Row],[FGd.Col], FGd.Cols))<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top