A great way to express appreciation for something is to explain why you found it helpful:
- Thanks! That didn't work at all, but it did help me recognize an unrelated mistake that was causing the problem.
- Thanks! I'm still lost - how do you make a function in C again?
- Thanks! Your solution blew up my house and killed my dog. I don't recommend anyone else trying it.
- Thanks! Your last comment was directly responsible for the destruction of The Universe. I never liked it anyway.
- Thanks! I was afraid I would have to ask a separate question, but thanks to you the solution to my second problem is now locked away in a hard-to-find comment thread!
Or as Maxpm wrote on MSEas Maxpm wrote on MSE:
Thank-you comments are okay if they provide useful feedback. Just saying "Great answer!" is pointless and redundant; that is exactly what upvotes are for. Comments are for conveying ideas that upvotes are too general for. If you have that kind of praise for someone, then go ahead.