Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which came first, Chicken or Egg
Message
From
05/10/2005 18:06:37
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
05/10/2005 16:08:46
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01056465
Message ID:
01056525
Views:
30
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
Map
View

Click here to load this message in the networking platform