Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning from a modal form
Message
 
To
20/02/2001 16:26:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00477782
Message ID:
00478153
Views:
28
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform