dmaz #1 I put one in the code archives almost a year ago that does what you want.http://www.blitzbasic.com/codearcs/codearcs.php?code=1790