[Gambas-user] BUG: Select when CASE DEFAULT

ron ronstk at ...239...
Sat Mar 27 20:50:15 CET 2004


On Saturday 27 March 2004 11:03, Benoit Minisini wrote:
> On Saturday 27 March 2004 04:04, ron wrote:
> > I have code as
> > SELECT CASE w
> > CASE 1
> > 	...
> > CASE 2
> > 	...
> > CASE DEFAULT <---  :(
> > 	...
> > END SELECT
> >
> > The DEFAULT gives a error but is in the help it is valid
> > ELSE works ok.
> >
> > I tested the code as in the help and changed the last case to
> > verify the error was not my project related.
> >
> > Ron
>
> The syntax is "CASE ELSE" or "DEFAULT". Not "CASE DEFAULT"!
>
> Regards,

[(CASE ELSE | DEFAULT)
...
]

It looks at first sight as ELSE or  DEFAULT but yes 
I was VERY wrong this time. A sentence below it is in a
clear way to read.

Sorry Ron




More information about the User mailing list