thanks for the reply.

I used endif as one word,it didnt show right here though.

I want the pin to be set to HIGH, 5 volts, how would I tell it that.

What is the book test.BAS??

any suggestions how i could accomplish what I am trying to do?