>Hi Fred,
>
>I don't used that commands in the form.
>I even try i with a new clean form and it give me the same results.
>Strange is that when i use your solution and in state of a property i use a global var. then it works ok, but i don't get wy it works by you.
>When i look with the debugger i see that when at the point of the return lFileOpen the form is not an complete object at that time.
>So, does the property you make in code exist at that time or not ?
>
>Regards,
>Jan
PMFJI,
If you're using a form with dataenv. this would be an easy solution :
LPARAMETERS nError, cMethod, nLine
If nError=1995
this.Parent.Tag = 'fail'
endif
If this.Tag= 'fail'
wait window timeout 3 "failed to load tables"
Return .f.
endif
Cetin