Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parametizing Dataenvironment?
Message
From
24/09/1997 19:26:10
 
 
To
15/09/1997 09:58:30
Andrzej Majlich
Vulcan sp. z o. o.
Wroclaw, Poland
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00049913
Message ID:
00051498
Views:
56
>>The form appears, the caption is set, but no table is loaded. It looks to me as if the DataEnvironment's init method executes before the form's so the tablename property hasn't been initialized yet.
>
>This is firing order of events:
>
>DE BeforeOpenTables
>Form Load
>Cursor Init
>DE Init
>Control Init
>Form Init
>....
>If want your controls assigned the proper controlsource you should open tables a long before Form Init event - the best place is Load.


Thanks for your suggestion. Sorry for the delay in replying - I've just come back to this problem.
In debug I can see what you say is so - that the controlsource's have already been assigned by the time I get to the Form Init event.

But, since it's the Form Init event that receives the parameter from the menu indicating the table for the form to use, how can I know which table to open when in the Form Load?

Perplexed
Martyn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform