To elaborate on Michelle's and Erik's answers a bit...
Michelle is correct that it's the textbox click (or whatever control you have in the column) that's being run. For read-only grids, I've created a special textbox subclass that has the following in its click method:
this.parent.parent.click()
I also do something similar for the double-click and right-click methods.
Erik is also correct that you must return the value to the calling form from the modal form's Unload method. I don't know whether or not the tables are still open at that point. If you find that they're not, store the value to a custom form property in the grid's click, and return the form property from the Unload.
>Hi. Here is what I am trying to do:
> Call a modal form that returns a value
>-- DO my_form TO my_value
> In the form is a grid, read-only. I want to click on a record in the grid (mouse) and have that record id returned.
> I tried the following code in the Click event of the grid
>-- my_value = my_dbf.this_id
>-- thisform.release
>
>Nothing happens when I click the mouse!