@Graham *****
you actually transfer whatever is allowing you to stay in Thailand, be it a tourist visa, an exempt stamp, or any long term visa extension. Most people with a short term visa simply wait until they leave, and show both new and old passport, but they can also go to immigration and have their entry stamp transferred into their new passport. There is no restriction on doing that.