yoko #1 Thanks, I found yan's code and found it very useful, exactly what I want to achieve in BlitzMax.Thanks for the helps.