Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOing FormB from FormA.Load
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00474068
Message ID:
00474292
Views:
15
>When converting a form from FoxPro Win to VFP, a 'DO FORM FormB' in the FormA setup snippett was copied to the FormA.Load method. FormB contains a push button and a list box that is populated with the data from a cursor. When FormA is run it calls FormB, but the list box on FormB does not display any data.
>
>When FormB is run from the command window it works OK.
>
>After several hours of playing around with the list box settings, we finally discovered that moving the 'DO FORM FormB' from the FormA.Load method to the FormA.Init method solved the problem.
>
>Does anyone know why calling FormB from the Load method of FormA causes this behavior?
>

The DE has not been established in the Load method, but has in the Init. The controls have not been inited in the Load method, either. Load occurs prior to Init.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform