>>>>Hi Arne:
>>>>
>>>>Did you try
>>>>DO FORM xxx WITH a,i TO varx
>>>>
>>>
>>>Mario,
>>>
>>>thanks for responding but that't not the problem (returning a parameter back to the calling form). The problem is that the xxx form does not retain the focus even though it appears that it should.
>>>
>>>Anyone else have a suggestion?
>>>
>>>-Arne
>>
>>Is your form a top level form? Top level forms can't be modal.
>
>Fred,
>
>well, since form xxx is spawned from another form with DO FORM, then by definition it cannot be a Top Level Form, right? For what it's worth, when I set the form to WindowType=0 (modeless), it behaved precisely the same way. Explicitly setting it to modal again made no difference. I'm really at a loss now, because this behaviour appears to fly in the face of the docs. I'm going to try the form as is under VFP5 just for kicks and see what it does. Something tells me that the form is "sticking" in modeless 'mode'.
>
>Any other thoughts?
>
>-Arne
Arne,
I couldn't understand by which definition it can't be a top level form. I think Fred is right there. Just to debug could you check its windowtype and showwindow properties.
Cetin