Please I thought i posted a code snippet but it appears it's not there, then how do I post code snippets. Thanks

You mean this code snippet?

//edit

Whoops, too slow

Thanks for the help, I've got it now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.