Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which came first, Chicken or Egg
Message
De
05/10/2005 16:16:05
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
05/10/2005 16:08:46
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01056465
Message ID:
01056472
Vues:
27
>I have a form that I want to reinitialize the memory variables from a DBF everytime the form displays.

Do you mean a scatter memvar? You can put that in form.activate, or even in .refresh - though it largely may depend on what are you doing with these memvars.

>Naturally one would think this is easy since you just put it in the INIT of the form.
>
>NOT SO.
>
>The Form init is not the first thing to run.

Of course it isn't - and it never was. Check The Visual FoxPro Event Sequence (you can find it under "event sequence tracking" in the help).

>So I went to the first item below the form in the Properties window (a text box)and put my Init code there. I put a wait window there and it WAS first.
>
>
>Is that a reasonable way to do this????

It's not - you can change the order of instantiation by putting any object into background or foreground using Layout toolbar - and the backmost (is this a word?) object will be instantiated first. So you can't be sure your textbox is instantiated before all other objects on the form. You can only be sure it is instantiated before the form itself.

I'm usually the last one here to ask you why are you doing this and what are you trying to achieve, but... oblige me this time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform