Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Environment problem?
Message
De
05/04/2006 16:56:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01110690
Message ID:
01110782
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform