Stumped on this

BlitzPlus Forums/BlitzPlus Beginners Area/Stumped on this

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I was just playing around with this test I made and I'm clueless to why the following error message pops up:
"Case without Select." The code is properly indented
for those who are adamant 'bout it.
;Event List 
KEY_DOWN=$101 ;A key was pressed down-needs the keys scancode for EventData().
KEY_UP=$102 ;A key has been released on the keyboard-needs the keys scancode for EventData().
KEY_USED=$103 ;A key has been typed-needs keys ascii value.
MOUSE_BUTTON_DOWN=$201 ;self explanatory, needs one of the following values(1=left,2=middle,3=right).
MOUSE_OVER_CANVAS=$203 ;self explanatory, you need to use EventX() and EventY() along with the canvas handle.
GADGET_USED=$401 ;self explanatory, you need to be specific to what kind of gadget it is, and what the gadgets handle is as well.
MENU_SELECTED=$1001 ;something has been selected from a menu, needs the menu identifier
X_HIT=$803 ;The X was hit
APPLICATION_HALTED=$2001 ;Self explanatory, means that the program was suspended
APPLICATION_RESUMED=$2002 ;Self explanatory, means that the program was resumed
;Banks
guibank=CreateBank(12)
PokeInt guibank,0,CreateWindow("UNTILTLED TEST",300,300,400,400,main,15)
PokeInt guibank,4,CreateButton("1",35,35,35,35,main,1)
PokeInt guibank,8,CreateButton("2",70,70,70,70,main,1)
Repeat
	Buttonz()
Until WaitEvent()=$803
End
Function Buttonz()
	PeekInt(guibank,0)
	uno=PeekInt(guibank,4)
	dos=PeekInt(guibank,8)
		Select WaitEvent()
			Case $401
				If EventSource()=uno Then
					Notify("UNO")
						Case $401
							If EventSource()=dos Then
								Notify("DOS")
							EndIf
				EndIf
		End Select
End Function 

Thanks,
Siopses