I am developing a program, in which the end user enters a string (A-B, A-C, A-D… A-Z), this string would be converted for example…
If it is A-C, the string would be converted to ABC and in turn generate three text files with certain information (FileA, FileB and FileC) and so on for the other strings.
If stringC = "A-C" then
stringC = "ABC"
elseif stringC = "A-D" then
stringC = "ABCD"
...
elseif stringC = "A-Z" then
stringC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
End If
I was thinking of developing it by using conditionals (if … then … elseif … End If) that identify each string, but I would be left with a very extensive tree of conditionals if it went up to A-Z. Any ideas to simplify it?
Regards, thank you in advance.