I have an application with one text box and one label. I need to figure out the best way for the following situation.

I have thirty code which will be enter into the text box and according with the input code the combines associated number to be shown in the label.

Eg. 123456 = 1

123457 = 2

123435 = 3

......

Meaning when I enter the code (123456) in the text box the the code (1) to be shown in the label.

I can do this with case statement and IF statement. I thought if there was a best way of practice for this to be done like arrays. And if you can show me any small example with this situation because I haven´t used arrays before.

Thanks in advance.