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!

retrieve data from a flexgrid

Status
Not open for further replies.

gxdragon

Programmer
Feb 6, 2001
23
0
0
US
I have a flexgrid with 3 columns and ? rows. the user can change the information in the 3rd column. how do I loop through and retrieve this information after the user is done with it?
 
Dim i
Dim someVariable
With MSFLexGrid1
.Col = 3
For i = 0 To 10
.Row = i
someVariable = .Text
Next
End With

You should also be able to loop through the Rows collection, probably like this:

For Each iRow In .Rows
someVariable = .Text
Next
 
One question though...

Thought the only way to make a FlexGrid writeable is to make it bound to a database... If it's bound, why do you want to extract information from it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top