|
-
Aug 28th, 2007, 05:43 AM
#1
Thread Starter
Member
Looking for the best way of toing thinks
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|