It probably hurt him a little to poop if the food was undigested. He needs to have a veggie fast and get cleaned out. Feed him raw veggies (preferably frozen peas but raw carrot works as well) in very tiny pieces. The total amount of the meal should equal about the size of half his eye. His pooping is a Very Good Thing. It means that he is getting over being constipated and should have some relief from the swimbladder condition.
Always wait about 15 seconds between pellets to make them chew their food. I know it is hard to find the time sometimes, but believe me it is better than worrying about a very sick little Betta.
Rose
