[Gambas-user] Or inside a Case

Stefano Palmeri rospolosco at ...152...
Tue Jun 17 18:40:15 CEST 2008


Il martedì 17 giugno 2008 18:29:11 Nx GT-R BOY ha scritto:
> Hi, I have a problem, I am not really sure how to get an Or working inside
> a case, the compiler doesn't complain about any syntax problems, but the
> code just doesn't works:
>
>
>
> SELECT CASE something.text
>
> CASE "hola" or "hello"
>
>             do something1
>
> CASE "adios" or "bye"
>
>             do something2
>
> END SELECT

try 

CASE "hola" , "hello"

it should work


ciao




More information about the User mailing list