The reason you are getting wrong answers is because this part of the forum in called The Lounge. It is for discussing general matters (not necessarily computers).
You need to post your query on the Programming Forum. If you can't find it, it's here:
Post your question at the bottom of the page and make sure you select Programming under the Software category.
Always pop back and let us know the outcome - thanks