Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

First try at arrays

$
0
0
Hi, Can you start me off - I got paper and pen but not sure where to go with that either. Have been learning arrays or trying to!
My topic: The application should allow the user to enter seven digits on a form. I designed the form with 7 text boxes, a button "verify", a label that will show a message saying its "verified" or not "verified" and a button "exit"

The numbers the user enters must be within a min/max range so on my paper I have declared two arrays one for max and one for min range(intMax as Integer = 1,2,3,4,5,6,7 and intMin as integer = 7,8,9,1,2,3,4), and intCount for a loop counter.
What I need to do is get the input, make sure its Integer value, (I can do this using try catch I assume) and then I have to make sure the number in txtBox1 = >1 and <7, txtBox2 >2 and <8 and so forth.

I read about parallel arrays and think this is what I should try but not sure how to get started apart from my declarations. Can anyone offer some help to get me started because I just dont know where to start. Im thinking I can do the checking the ranges of the text boxes with a For Next loop but not sure.
Thank you

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>