A few things to iron out first:
First, just saying "it doesn't work" is completely useless. Please
read this for more information and post back with more details.
Secondly, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please
read this for more information.
You can go back and change your post to add code tags by clicking the
button on your post.
And thirdly, Please be sure to take the time to compose descriptive subjects for your posts;
read this for more information.
A title such as "problem with the code" is not helpful. What would happen if all posts had such a title? How are we supposed to pick it out of the list?
Please go back and change your post to add a more meaningful subject by clicking the
button on your post.