>>I use a flag to indicate what is going to happen.
>
>Oh, I know what is happening.
>
>You may try it as well.
>
>1. Just put a free table in DE.
>2. Put this code in BeforeOpenTables()
>WAIT WINDOW ThisForm.DataEnvironment.Cursor1.Database
>ThisForm.DataEnvironment.Cursor1.Database=''
>WAIT WINDOW ThisForm.DataEnvironment.Cursor1.Database
>3. The first wait window will not appear because it is blank
>4. The second wait window will show your default path+blank
>
>Did I discover a bug?
Sounds like it to me. In a situation like your I would use the EMPTY() function to test the environment. Obviously this would not work. Hmmm... (s)
Tom