First of all, the CODE button below the text entry area for a message creates two tags. Your code must go in between the tags in order to preserve the formatting.
Second, I doubt anyone here is willing to just give you the answer. However, we are more than happy to help you find the solution yourself. In fact, it looks like you are well on the way. Let's look at your proposed answer:
If you compile this, do you get any errors? I suspect you will get something about "unreachable code". This is because of the "return false;" statement. As soon as this is executed the method will return and the next two lines will never be executed. You can fix this by moving the closing brace:
With this fix, I think it should work as expected.
Layne, You are right. I will make sure I wouldn't post these type of questions further. Thanks for the answer and suggestion.
Joined: Dec 06, 2001
Don't worry about it. This is the BEGINNER forum after all, so we don't expect particularly difficult questions. Just remember to show what you have tried on your own because as I said, most people here are unwilling to solve the problem for you. However, we are more than willing to point you in the right direction.
Good luck with your future programming projects!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com