Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid quest
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00495397
Message ID:
00495441
Vues:
11
>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
Fil
Voir

Click here to load this message in the networking platform