Coding Problem

BlitzPlus Forums/BlitzPlus Beginners Area/Coding Problem

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 think I did that so it would be more readable and understandable for me; or some other reason. Anyway,
thanks for the help guy's. Now I'm back to were I started
the window will move but the function will not work. Test
it out yourselves. Also, when I do all these ridiculous dot
formations it says I need an 'End Function'.
Here's my code, it doesn't work and it looks absurd.
Function StartEruP()
.  MainMenu=CreateWindow("Main Menu",300,300,400,500,main,15)
.  Ev=WaitEvent()
.  Es=EventSource()
.    Repeat
.     .  Select Es
.     .  .         Case MainMenu
.     .  .           If Ev=$803 Then
.     .  .            .            Blah=Proceed("Do you really want to quit?")
.     .  .            .   If Blah=1 Then
.     .  .            .   .                    End 
.     .  .            .   .                       Else
.     .  .            .   . If Blah<>1 Then
.     .  .            .   . .              Notify("Find out what you want next time")
.     .  .          EndIf . .
.     .  .       EndIf..... .   
.     .  .  EndIf............ 
.     . End Select 
.    Until KeyDown(1)
End Function
StartERuP()
End 


This only happened when I used indenting.