Thanks, problem solved after defining strClass