>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?