Hi Frank, I tried the same code in Jave(of course it need some slight change) it works fine while it is an Array bounds out of index exception in D. Regards, Sam