>Hi everybody,
>
>We're using MereMortals framework, but I think this problem is more generic.
>
>We have a form that uses free tables in its DE. In the calling form I set path to the folder where these free tables are located.
>
>Now, here is what's happenning: I open form with, say, Batch 10. It opens tables correctly pointing to the right directory. I close the form, restore set path. I then try to open this form with another batch, say, 11. The path is again set correctly, so the right directory is set in the path. However, the form opens wrong data (previous tables).
>
>Well, we solved the problem by setting right alias CursorSource in LoadCursors method of Cursor, but why we have to do that? How does form's DE remember last tables accessed?
>
>Thanks a lot in advance.
The SCX form's properties are loaded after the de.BeforeOpentable
and de's cursors are loaded, immediately before the Load event;
this happen because the Scx records order is :
- de
- form
- ...
This is a bug design for me, but ....
look
wait windows thepathproperty
wait windows thepathproperty
workaround
de.AutoOpentables = .F.
this.de.OpenTables