Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternating colors in Grids
Message
De
25/02/2004 09:18:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Alternating colors in Grids
Divers
Thread ID:
00880671
Message ID:
00880671
Vues:
44
We use the following code to alternate the colors of the lines in a grid, i.e. Yellow, Green, Yellow, etc. It works great, until we sort the cursor using a temporary index. After re-ordering, RECNO() is no longer 1,2,3... but could be 2,4,3.. which messes up the alternating colors. Does anyone know of a way to dtermine the actual physical row number in the grid instead of using the record number from the cursor? This would guarantee the lines would alternate under all conditions. Or any other ideas to help make this work?

Thanks,

Bryan A. Jackson
for Rudy Nieves

THIS.SetAll( "DynamicBackColor", IIF( MOD( RECNO(), 2 ) = 0, RGB(187,217,168), RGB(255,255,190) )", "Column" )
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform