Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic column colors
Message
From
17/08/2016 11:31:23
 
 
To
17/08/2016 11:12:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01639490
Message ID:
01639568
Views:
71
>Yes - everything is names right, otherwise, when grid1 initializes, or does what it ought in AfterRowColChange, it would give errors ALL the time. It is just when that method is called from the grid2 that error=12. I have had trouble referencing DynamicForeColor always, so perhaps that's the '12' it can't find...
>
>Pic of the screen attached. The way it needs to work is:
>grid1 displays the jobs.
>grid2 displays the parts required for that job.
>if the backorder date and arrival date of the parts are empty, the record in grid1 must be red
>if they are filled in in grid2 correctly, the row in grid1 much change color to green.
>Presently, if they get filled in correctly, and I use the keyboard to Ctrl+Tab, to go back to grid1, the color of the row changes correctly, but I want it to change as soon as the data in grid2 triggers the color change, but calling the AfterRowColChange from grid2 causes the variable not found error.

Can you Copy + Paste here the complete code of the Grid2 method in which you're trying to change colors in Grid1, that raises the error?
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform