Over here we have saying that goes roughly like this: "He who needs a helping hand, often finds it on his own arm".
You have been asking quite a lot of questions, but you're not really helping yourself being helped. I can't believe that you cannot find a good code example using Google yourself.
Also, in one of your other posts, jaucourt suggested a couple of solutions. Did you try that? Did it help? If not, why didn't you respond to his message, asking for more information?
Personally, I don't think that complaining that you have been working on this for the past 9 hours will get you closer to your answer. If you need help, you have come to the right place. However, you can also help yourself by doing a little research and by explaining what you have already done, and what didn't work. People here are more than willing to help you, but they are not going to do your work for you.
Everyone is unique, except for me.
While typing this post, I was listening to: Antistar
by Massive Attack
(Track 9 from the album: 100th Window
) What's This?