RXArt #1 thanks. I was looking at http://blitzbasic.com/codearcs/codearcs.php?code=139, and it was pretty scary. But thanks for the shorter version, agamer and gfk!