Getting steppermotor to work with my present program.

Posting your code in quote tags rather than code tags has screwed it up, turned much of it into italics and put a couple of smileys in it along the way

Please repost it in code tags in order to make it readable.