Okay,

I figured out the problem with the infinite loop.

I was running a old version of KiX, 4.0.2, which had some some problem with multi-dimensional arrays.

Thanks for everyone's help.

[ 22. August 2003, 18:48: Message edited by: quihong ]