OK, I've added the following

Code:
Main:
    MaskSwitch=PORTC & $07
        Select Case MaskSwitch
          Case 1 '%00000001 or SW1
            Gosub Procedure_SW1

          Case 2 '%00000010 or SW2
            Gosub Procedure_SW2

          Case 4 '%00000100 or SW3
            Gosub Procedure_SW3
          Case Else
            Gosub Error
    End Select
Goto Main

Error:
    For loop = 1 to 5
        Red = 1
        Pause 100
        Red = 0
        Pause 100
    Next Loop
Return
Now the LED is flashing all the time, so i presume the CASE ELSE is true, which i guess means something else is happening.

I think it may be due to the following:

Code:
MaskSwitch=PORTC & $07
What does the $07 represent. Is this saying all of the PORTS on C. If so, what will it be if i want just PORTC.0, PORTC.1 and PORTC.2.

Thank you, i think i'm getting there!!