The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Need Asp Help!!

I'm wondering for anyone out there who can help me.
I have no idea how to code a table where each table row is a diffrent colour.
EX. Row 1 is RED Row 2 is Blue. Row 3 is Red again. anyway we all get the idea any help on this would be greatly appreciated
Thanks
capples3

NOTE: I always prefer the Call Sub(Param1, Param2) syntax (it's easier to read), but as always you can use the standard Sub Param1, Param2 syntax if you prefer.

This sub is also useful for toggling between True/False states, and because it modifies the variable directly (using the ByRef) it can be used for as many variables as you want at the same time (in one app I'm working on, I have 4 state variables in one loop, all toggling between states at different times). Finally, please note that because of the way that it works, you don't even need to initialise your variable with the first state value - the sub will automatically set it to the first state the first time it is called!!