> Why dont you post more of the code? Thank you very much. Now I see much clearer. I did not want to post more code than absolutely necessary. The line where I swap variables is part of a function in which a matrox is manipulated. -- Janos Blazi