Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00792933
Message ID:
00792953
Views:
28
>I am building a customer lookup grid in VFP8 that includes a hidden column that contains the customer's PK. I want the grid double-click event to return the PK of the selected row to the calling program.
>
>I am trying to use the grid's Valid event to store the PK but have had no success with this technique.
>
>Thanks,
>Tom Hall

Assuming you've got some kind of cursor acting as the RecordSource for the grid, there's no need for a hidden column to hold the PK, and no need to store the PK somewhere in the grid. The record pointer of the cursor will move with the grid pointer, and you can just pull the PK from the current record of whatever the RecordSource is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform