wedoe #1 I made this snippet a long time ago, check it out, it will solve your problem:http://www.blitzbasic.com/codearcs/codearcs.php?code=182