Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which came first, Chicken or Egg
Message
De
05/10/2005 18:06:37
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
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:
01056525
Vues:
32
Hi Joel

If you would simply create a textbox class with code in it's init that sets the color based on the .Value property, you could then drop these on the form, set the controlsource and not need any memvars at all.

The whole scatter memvar thing is not a best practice in VFP. Code in the init of the form should not really be operating on the controls. They have their own inits for that.

>I have a form that I want to reinitialize the memory variables from a DBF everytime the form displays.
>
>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.
>
>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????
>
>
>Joel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform