Ignore my last message about lua_strlen; I hadn't noticed it took a stack index rather than a string. Sorry! -- http://sc3d.org/rrt/ | Si hoc legere scis nimium eruditionis habes.