Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.

Please refer to the link above and post your code correctly.

As you were...