Thanks for responding. Actually, I've already tried that. The complier complains that it's looking for an "Integer constant expression" instead of "cast(int)i". ------------ Andrew Edwards