J Jon Booth Dec 2, 2003 #4 See switch statement (assuming you use c#) http://www.softsteel.co.uk/tutorials/cSharp/lesson10.html