Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting values from a grid cell
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00599351
Message ID:
00599362
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>I have a from with a grid on it. The grid has 3 columns. When the user dbl-clicks on the third column, they can pick a value from a popup window. The grid may have from 1 to n number of rows. After they double click and pick a value, I need to build a string of all the values in the 3rd column of the grid. Is there a way in code to walk the grid get the value column 3 in each row? I know how to get the value from the cell, but I don't know how to walk the rows?
>
>
>lcString=[|]
>for x=1 to reccount("Meetings")
>  lcString=lcString+thisform.grid1.rowx.column3.value
>endfor
>
Kirk,
Other than the current row, grid rows do not really exist. They are representations of the underlying data. You can't walk the rows of the grid but you can walk the underlying data using SCAN/ENDSCAN or something like that. Simeply process the table/cursor field bound to the column in question.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform