When I feel a sweet craving coming on, and I know I'm likely to eat much too much of something much too unhealthy, I compromise with a lollipop (or hard candy, if you prefer). My favorite brand is organic, all natural, has no corn syrup, and is flavored with fruit, so it's quite a bit healthier than a 'regular' corn syrup pop, and by the time I've finished it off 10-15 minutes later, the craving has passed/been satisfied, and I've only consumed 1 pop under 25 calories, instead of whatever else.
This 'compromise' works great for desert too, if you are craving something sweet after dinner and fruit isn't cutting it right then. Turn to fruit 1st though!
My favorite brand is Yummy Earth Organic Lollipops, if anyone is interested. They taste great! (No, I'm not being paid to say any of this.)