Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show rows in different colors
Message
De
05/09/2008 09:08:05
 
 
À
05/09/2008 08:55:58
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345102
Message ID:
01345111
Vues:
13
Hi Jay,

Simply put something like this in your Form.Init


Thisform.Grid1.SetAll ([DynamicBackColor], [IIF(MOD(RECNO(),2) = 0, RGB(128,128,128), RGB(255,255,255))], [Column])


UPDATE: Forget about it. Didn't see that you asked for REPORT.

>What's that little trick using the recno() and MOD (I think) to do something to every other row in a report? How would I apply that to changing the colors of the background box? Would I need to have two boxes and use the Print When for each?
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform