Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic column colors
Message
De
17/08/2016 11:31:23
 
 
À
17/08/2016 11:12:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01639490
Message ID:
01639568
Vues:
59
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform