Blitz (132/218)

From:Steve Hargreaves
Date:22 Aug 2001 at 02:05:16
Subject:Re: EndSelect/Case/Default without Select

On 22-Aug-01, Thilo K�hler said -

>TK>> How can this error be produced at all !?
>TK>> I searched lots of hours but cant find a bug.
>TK>
>TK> Try checking for nested select/end selects eg. a select block within
>TK> another select block
>TK The bug must be in the same function right ?

Yes and no. If you have an "If" without an "EndIf", or the "EndIf" outside the
function (same with While-Wend,Repeat-Until,Select-Case-End Select etc.) then an
error will be produced of the type you are getting. Make sure that your "End
Select" occurs /before/ your "End Function"

This can also happen if you have something like:-

If /condition/

/ /Select /variable/
Case 1

Case 2
EndIf

End Select

(EndIf and End Select reversed).

Check for any similar abnormalities in your code.

Regards

Steve
========================================================
//Amiga 1200, '060/50, OS3.9, EZ-Tower, Dopus,
// PC Keyboard W EZ-Key, 56K modem, 2+32 Meg,
\\ // NEC 2A Multisync, Logic 3 SpeedMouse, HPDJ610C,
\\/ Sega Controller, & no hair.

=========================================================
My goal is simple. It is complete understanding of the universe, why it as it is and why it exists as all.
-- Stephen Hawking

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie