Interesting info everyone, thanks a lot. As Vintage ATCO says, I am always careful when setting squawks however on those occasions with a code so close to an emergency one, I must say that I did check that the correct code was set a number of times before we set off!!