Hello again Cetin
>PMFJI Terry,
Not at all. Thanks for all this :-)
>The form is not modal, hence code continues to run after "do form..." and visible = .t. ( or .Show()) is executed.
I presume by "The form" that you refer to the called form. If you read my reply to B, below, you'll see that I already made the called form modal and now there's no problem.
>Simple solution is to make it modal. Alternatively you could hide() caller form but pass form's reference to called form and it calls this.oCaller.Show() in its unload.
<snip>
>Yet another alternative is not to call another form. Instead import results are shown in a container temporarily added to 'caller' directly. ie:
>
>thisform.NewObject("ImportResults",...) && Container class resize itself to cover other objects
>thisform.ImportResults.Visible = .t. && Its 'Exit' button calls parent.parent.removeobject(this.parent.name)
>
Thank you. No, it's the error table results that I show in the called form. It has another function, with a print button to print out the error table. Anyway, it's sorted now.
Terry
>...However, I sussed the problem. The error display form should have been modal, as I want the user to >peruse it and force him to close it before going on. I must have temp. taken modal off, for testing, e.g. >so I could browse the table, and forgotten to reinstate it.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.