-
March 14th, 2014, 10:52 PM
#1
Practice Help....
I'm bored at work, so I pull out my laptop to get some practice coding done. In class at the moment, we're working on arrays, so I thought I'd practice a bit. This isn't homework. I created a string array listing various movies I enjoy. I've also created a txtbox and a button. I'd like to know how to have an int that the user enters into the txtbox be equal (minus 1) to the index of a particular element, without having to write 10 different IF statements. Any help at all would be well appreciated.
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
|