Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling same form class on '3rd level' does not work wel
Message
De
13/02/2011 09:14:41
 
 
À
13/02/2011 00:06:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01499848
Message ID:
01499991
Vues:
89
>Tamar,
>
>Have you tried tracing the code to see exactly what's happening in the second call to frmBrowser?
>
>I found the culprit - it was a combobox that is part of frmBrowser - but to me raises more questions. At design time, I have set RowSource to a name of a temp table which was created only in the Init of frmBrowser. So, what I did was leave RowSource blank at design time, and let frmBrowser.Init do the setting. The right thing to do.
>
>Big question now is: how come though frmBrowser works during the first time calls?
>
>Maybe you could shed light on this 'phenomenon'... =(

Not sure exactly what's happening, but Init is too late to create a table that's referenced in a control. You need to do it in Load.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform