The code shows promise.
1) I believe line 2 should say thisform.show(0) in order to make it modeless (?)
2) I believe the last two lines need to be eliminated because they bring things back.
At the bottom of help for show there are the following comments:
* You cannot change the WindowType setting once the window has been displayed.
* The Show method takes a parameter that can override the WindowType setting.
Even though the watch window indicates that windowtype = 0 for the main form, control remains with it, so it effectively remains modal. We may be running against the first of the comments quoted above. The good news is that the outer variables have not lost scope.
I will tinker with the lookup form and the when of the list button and also ask Dave Lehr.
Maybe a whole different technique than making the form modal is necessary.
Thanks and would appreciate further ideas.
Alex
>Alex:
>
>Phew. You have a bit of a tough one here <s>. I will have a think about this but a thought to be getting on with. You could subclass the list method on the form and try something like.
>
>
>thisform.visible = .F.
>thisform.show(2)
>dodefault()
>thisform.visible = .F.
>thisform.show(1)
>
>
>I don't know whether this would work but its worth playing around with.
>
>-=Gary