Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling same form class on '3rd level' does not work wel
Message
From
13/02/2011 09:14:41
 
 
To
13/02/2011 00:06:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01499848
Message ID:
01499991
Views:
86
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform