Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining every other row
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00622848
Message ID:
00622850
Vues:
14
This message has been marked as the solution to the initial question of the thread.
for x = 1 to thisform.bblist.rows.count
  If (x % 2) = 0    && x is even I want to set backcolor
    ...
  Endif
endfor
>I have a For/EndFor loop running on a list box, my goal is to color the backcolor of every other row to a gray. Does anyone know an each way to determine if the the for value is an even number. I can't use the skip command because I'm doing other formatting on every row.
>
>
>for x = 1 to thisform.bblist.rows.count
>  *If x is even I want to set backcolor
>endfor
>
<
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform