[Gambas-user] SELECT CASE... without TO?

Benoit Minisini gambas at ...1...
Tue Jun 7 14:39:19 CEST 2005


On Tuesday 31 May 2005 11:59, Eilert wrote:
> Is it possible that the CASE instruction does not know a TO range?
>
> I had
>
> SELECT CASE Val(t$)
>
> CASE 1 TO 19
>
> ...
>
> END SELECT
>
> and it says "End of line expected" for the line with the CASE.
>
> If TO is not implemented, what would you use here instead?
>
> Thanks for your help.
>
> Rolf
>

I add that in the TODO list. Use IF...THEN...ELSE IF...ENDIF instead. It 
compiles to exactly the same code.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list