Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid/row question
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00599178
Message ID:
00599179
Views:
13
>Alright guys. One more question and then I promise not to ask anymore this year!! I am using grids more in more in VFP and I find row type operations to be not as easy as I would have expected. Say I have a 5 column grid and the first column is the customer_id. If the user clicks on the 4th column, how do I tell which customer_id corresponds to the row that they have clicked on. As it is the users have got to click only on the first column for my program to work and they want to be able to click anywhere. ideally i would like to say "var = thisrow.column1.value"
>

Hi Nancy,

The record pointer in the grid recordsource always is on the record that it's active row in the grid. You can reference to the fields of the current record of the grid controlsource
lcCustomer_id = EVALUATE(thisform.grid1.RecordSource + ".customer_id")
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform