@Catherina *********
seeing as you say your non-B is valid until the 19th of november IF I had to guess I'd say you have a 90 day Non-B visa (that you got from a thai consulate in another country OR from the immigration office here). IF you are going to exit the country on it you would need a re-entry permit to keep the current 90 day stamp you have valid so when you come back in you get stamped in until that expiration date.
Keep in mind that a re-entry permit doesn't add any time to your existing stamp, all it does is let you exit/re-enter and get stamped in for the same expiration date