Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I tried that but no changes whatsoever to the color.
Well, I know that .SetAll("DynamicWhatever","Expression","Column") is the correct syntax for this.
So, a few questions/comments...
1) Make sure the expression is correct. If the expression is "IIF(RECNO()%2=0,RGB(255,255,255),RGB(0,255,0)", then it will not work and VFP will not yell at you; however, notice that I do not have a close parenthesis closing the IIF() function. In other words, make sure you have all the parentheses there.
2) Seemingly obvious question, but I must ask... Are there records in the grid? You will only see the alternating colors on grid rows that have actual records... you won't see color changes in the blank rows.
3) Are all your record numbers even numbers? In other words, if you're setting the DynamicBackColor based on MOD(RECNO(),2)=0, and you have record numbers that are numbered 2,4,6,8,10, then they will all be white background.
--Brad
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement