Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event firing BEFORE form.load
Message
De
05/03/2009 15:41:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/03/2009 11:33:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01385412
Message ID:
01385983
Vues:
67
>>> You have put Wait Window in the Parent form_Load Init, and of cource pagecount_assign will fired before it
>
>Sorry, I don't see why a pagecount_assign should ever fire before a load regardless of where in class heirarchy it is placed.
>
>Event firing sequence is;
>
>Data environment - BeforeOpenTables
>
>Form set - Load
>Form - Load
>
>Data environment cursor(s) - Init
>Data environment - Init
>
>Objects - Init
>
>Form - Init
>Form set - Init
>
>Since objects are not initialised untill after a form.load, they should not be in a position to file off events like an assign event.
>
>Gary.

Gary,
You are right. It doesn't have to do something with class hierarchy. It happens and in load event though the inits didn't run yet object properties are set and accessible.
I rely on calling a "setups.prg" in DE.BeforeOpentables(). You don't need to add it manually to all your forms. You can run a little looping code that would add the code to each form in a folder.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform