Sorry, I worked that out later :-O Keeping your functions small is another recommendation from the book, actually. You'll probably find, as I did, that most things it recommends, you do, but it's worthwhile just to think about the reasons why. Christian Graus - Microsoft MVP - C++