Thanks Javier ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Javier Valencia Sent: Thursday, March 12, 2009 2:48 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: Selected Item on DB Grid
Dennis, The method I described should work for what you need. Simply define: vYourPK = YourPKColumn And vYourPK should have the Value of your PK columns for the current record. You do not have to display your PK column on the grid to obtain the value of the PK column. Javier, Javier Valencia 913-915-3137 ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dennis McGrath Sent: Thursday, March 12, 2009 2:37 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: Selected Item on DB Grid Javier, The goal was to capture the primary key for the selected row. With that, one can lookup what they want in the database. Dennis ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Javier Valencia Sent: Thursday, March 12, 2009 2:32 PM To: RBASE-L Mailing List Subject: [RBASE-L] - RE: Selected Item on DB Grid Normally, if you define a variable: vYourVariable = YourColumn Name Variable vYourVariable will take on the value of the selected column for the current record. If you want to permanently store the variable, you could use a button that sets another variable to vYourVariable...makes sense? Javier, Javier Valencia 913-915-3137 ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dennis McGrath Sent: Thursday, March 12, 2009 1:56 PM To: RBASE-L Mailing List Subject: [RBASE-L] - Selected Item on DB Grid Is there a way, when using a DBGrid, to retrieve a value into a variable from the selected record? Dennis McGrath

