Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Environment problem?
Message
From
05/04/2006 16:56:48
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01110690
Message ID:
01110782
Views:
11
This message has been marked as a message which has helped to the initial question of the thread.
>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
* de.beforeOpentable
wait windows thepathproperty
*form.load
wait windows thepathproperty
workaround
* set
de.AutoOpentables = .F.

* in form.load
this.de.OpenTables
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform