Hi, I have been reading the BUTTON definition and its still givin me a headack. Unlike a gosub, when it terminate itself with the END command, there is nothing to show where the BUTTON action ends.
This is the example in the Pic basic manual:

Loop: BUTTON Bpin,1,10,5,B0,0,notp
Serout SO,N2400,["Press",13,10] '

notp: Serout SO,N2400,[#B0,13,10]
Pause 100
Goto Loop


If I was to add lines after the Pause 100, How would I know that it is included in the notp: or not. It would be much easier to end the notp: with an End :ie

notp: Serout SO,N2400,[#B0,13,10]
Pause 100
End 'of course I made that up!
....
CODE here
...
Goto Loop

Other wise it will think the CODE is to be executed withing the button parameter.

Can someone clear me out on this one ?

K