>You are right, running your code I get the same result.
>However, I think I miss something. Here is my code:
>
>>* do the report here
>lcFisier.SAVEAS(lcCaleNume)
>x.QUIT
>x = .NULL.
>Thisform.Release
>
>
>If i execute the lines step-by-step in debugger, they execute almost instantaneous (including thisform.release), but if I run the form, after saving the file, my form stays on screen another 2-3 seconds, unresponsive, then releases. Do you have any idea why, please?I agree with David on what the probable cause is. If you want the form do dissapear faster, you can give the user that illusion by doing a
Thisform.hide
. This will make it immediately dissapear from view, then the form.release can take its time.
HTH