Glad you figured it out.

FYI: Put code tags around code so it displays with correct indentation (as it does in my post).

[code ]
Your code here
[/code ]

Remove the space in each before the ] to get it to be this:

Code:
    Your code here