Thanks Bruce and Gadelhas.
I have made the recommended changes and am pleased to advise that it now compiles correctly.
Now to fire it up on the breadboard to see if it works as expected.

Dave, I do no understand your comment regarding the use of code tags. Can you explain further or direct me to somewhere that will outline what I am not doing?

Cheers
Barry