Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which came first, Chicken or Egg
Message
 
 
To
05/10/2005 17:30:48
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:
01056535
Views:
26
This message has been marked as the solution to the initial question of the thread.
>I did not think it would.
>
>I was trying to change the color of certain text fields and some command buttons based on the data in a DBF record. The form has many of the fields of the DBF and as they change values, I was going to change colors.
>
>Normally the user hits a command button, goes out to another form and does things. When they come back to this form I was going to reset all of the colors based on their actions.
>
>So I used memvars for the fields and do a scatter memvar whenever the form is refreshed.
>
>It is NOT working. Even when I scatter memvar on the form load, the various boxes and buttons can not see the memvars when they do an INIT.
>
>I put a wait window in the various steps so I know that the scatter memvars does happen first, but the various boxes and command after that can not see the memvars.

If you cannot directly bind controls to a record as David suggested, then the next best thing will be SCATTER NAME. Add a property to a form called oMytableRecord, bind controls to properties of that object and
SCATTER NAME ThisForm.oMytableRecord
You can try to put code that changes colors of the controls in each control REFRESH() event.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform