Help with code

Please edit your post and use code tags and not quote tags. Without this change your code is modified by the forum system and not displayed correctly and I don't want to guess where you may have had what differently than displayed.