Hi,
Please read the post at the start of any forum , entitled "How to use this Forum".
This will help with advice on how to present your code and problems.
Your code will be posted in a scrolling window.
Also before posting your code, press [ CTRL ] [ T ], this will format your code and make it easier to read.