Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2000 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement