Prof #1 You could have looked in the code archives. I did one of these ages ago....http://www.blitzbasic.com/codearcs/codearcs.php?code=708