Hi Luc, Of course you're right - I just couldn't be bothered checking the MSDN documentation to see what was returned if the cast failed sp decided to try and cover my bases. I was treating the code as if it were working on a simple calculator and limited the range of error messages. In any case, I said it was better, not perfect!! :laugh: Dave
It definitely isn't definatley