Yes, I wanted to replace "a","b","c","d","e" with a variable.
Still no.
But if you're working with single characters, you can do a quick "multi-way if" using String.Contains eg:
[CODE lang="b4x" highlight="3"]Dim MustBeOneOfThese As String = "abcde"
If MustBeOneOfThese.Contains("c") Then 'equivalent to Select Case "c" : Case "a", "b", "c", "d", "e"
Log("Your letter c is included in your variable list of desirable characters " & MustBeOneOfThese)
Else
Log("Your letter c does not pass the test")
End If
For L = 1 To 26
Dim OrdinalSuffix As String = "th"
Select Case L Mod 10
Case 1: OrdinalSuffix = "st"
Case 2: OrdinalSuffix = "nd"
Case 3: OrdinalSuffix = "rd"
End Select
Log("The letter " & Chr(96 + L) & " is the " & L & OrdinalSuffix & " letter of the (english) alphabet.")
Next[/CODE]
[CODE lang="html" title="Log output" highlight="3"]Waiting for debugger to connect...
Program started.
Your letter c is included in your variable list of desirable characters abcde
The letter a is the 1st letter of the (english) alphabet.
The letter b is the 2nd letter of the (english) alphabet.
The letter c is the 3rd letter of the (english) alphabet.
The letter d is the 4th letter of the (english) alphabet.
The letter e is the 5th letter of the (english) alphabet.
The letter f is the 6th letter of the (english) alphabet.
The letter g is the 7th letter of the (english) alphabet.
The letter h is the 8th letter of the (english) alphabet.
The letter i is the 9th letter of the (english) alphabet.
The letter j is the 10th letter of the (english) alphabet.
The letter k is the 11st letter of the (english) alphabet.
The letter l is the 12nd letter of the (english) alphabet.
The letter m is the 13rd letter of the (english) alphabet.
The letter n is the 14th letter of the (english) alphabet.
The letter o is the 15th letter of the (english) alphabet.
The letter p is the 16th letter of the (english) alphabet.
The letter q is the 17th letter of the (english) alphabet.
The letter r is the 18th letter of the (english) alphabet.
The letter s is the 19th letter of the (english) alphabet.
The letter t is the 20th letter of the (english) alphabet.
The letter u is the 21st letter of the (english) alphabet.
The letter v is the 22nd letter of the (english) alphabet.
The letter w is the 23rd letter of the (english) alphabet.
The letter x is the 24th letter of the (english) alphabet.
The letter y is the 25th letter of the (english) alphabet.
The letter z is the 26th letter of the (english) alphabet.
Program terminated (StartMessageLoop was not called).[/CODE]