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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping in a Flex Grid

Status
Not open for further replies.

cwalshe

Programmer
May 28, 2001
84
IE
HI there,

I have a MS Flex Grid that I want to loop thro and get the values form a particular column and then populate a dynamic array.

Any ideas,

Cormac.

PS The number of rows will vary but the number of colums will remain static.
 
You might try something like this.


Redim YourArray(grdGrid.Rows)
ColNum = 3 ' or your specific column number

For RowIdx = 0 to (grdGrid.Rows - 1)
YourArray(RowIdx) = grdGrid.TextMatrix(RowIdx, ColNum)
Next RowIdx Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top