Hi mark92, welcome to the forums!

When you post code, please use "code" tags. Put
at the start of the code, and at the end: that way the code will be formatted and readable when it appears on...