hi Stéphane, I read codes moring, and I think I catch the idea, if you permit I will modify the code a little to fit in my program. thanks for help.:)<br> Wang Wei<br>