Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Forms & Form designer
Environment versions
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only