>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--