>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
Are you sure you're using a property of the form (or of the DataEnvironment itself)? A variable could go out of scope and cause other errors.