Android Question Select Case

Sergey_New

Well-Known Member
Licensed User
Longtime User
Is it possible to use a variable in a Select Case procedure instead of listing values?
B4X:
Select Case "c"
    Case "a","b","c","d","e"
        ...
    Case Else
        ...
End Select
 

William Lancee

Well-Known Member
Licensed User
Longtime User
1msecs vs 2msecs is either "negligible" or "twice as fast"

I suspect that it was a design decision while creating ordered lists which were needed for B4i, since in B4i order in maps is not maintained.
So when we have the mechanism of ordered list, why not add a B4XSet - it would probably take him 5 mins - no harm done and adds the 'contains' method for large sets.

The last few posts of this thread would have been a good chit chat topic.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
1msecs vs 2msecs is either "negligible" or "twice as fast"
about 2 ms
It is not known if it was 1.9 ms versus 2 ms. I'll try with 1,000,000,000!


Unsorted maps ok, but B4XSet looks so similar to List that I just don't understand why it was created.
The last few posts of this thread would have been a good chit chat topic.
Actually, it's better if I ask this (annoying ) question in a new thread.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…