Android Question Select case and strings

MitchBu

Well-Known Member
Licensed User
Longtime User
It seems this does not work :

B4X:
select case kind
  case "blue"
    log("blue")
  case "yellow"
    log("yellow")
end select

kind is a string.No error is generated, but the logs never execute.

What am I missing ? Is it not possible to use strings in that type of structure ?
 

udg

Expert
Licensed User
Longtime User
B4X:
Select kind
  case "blue"
  ....
End select

Sorry for too short answer but I really hate the virtual keyboard on my tablet.

udg
 
Upvote 0

MitchBu

Well-Known Member
Licensed User
Longtime User
Mysteries abound. I just created a small test project, and of course now it works flawlessly.

It is not unlike the proverbial TV that works only at the repair shop.

At any rate I have modified the code of my current project with no "case", and it works fine.

Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…