I am a new student in the area with very little programming experience. We are working with arrays in our vb.Net class and I am coompletely lost. Our program has to look up part numbers in order to improve customer service. The user has to enter the part number and brand and look up the corresponding Auto number. They get to choose from 3 brands which can be selected by radio button. We can either store the part numbers in a 2-dimensional array or in an array of a structure. We have to use the part number to lookuup and display the part number. can anyone provide any assistance as to where i should start?
cassie_sanford
1
Junior Poster in Training
Recommended Answers
Jump to PostWell, I guess the first part would be how to define an array. To define an array, you use parentheses when you define the array of a variable. For example, instead of Dim num as Integer, to define an array of integers, you use Dim num(9) as Integer. This will …
Jump to PostWith an (8,3) array (nine "rows" by 3 "columns"), I would imagine that you have 8 items and that each item has three fields (Auto Center, Brand 1, Brand 2 and Brand 4)
Please note that my use of "rows" and "columns" above is purely to visualize the array. …
Jump to PostI'm not sure what you are trying to do. You have a structure set up, but then you have an array of strings. How are the strings supposed to represent and how does the PartSale fit into everything?
Jump to PostAfter copying your code, creating a form and creating the controls that the code refers to, I had to change the following lines
columnString = .partnumTextBox.SelectedText
to
columnString = .partnumTextBox.SelectedIndexpartnumTextBox.SelectedText = -1
to
partnumTextBox.SelectedIndex = -1foundPartNumberString = partNumberString(rowString, columnString)
to
foundPartNumberString = partNumberString(columnString, rowString)…
All 16 Replies
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
cassie_sanford
1
Junior Poster in Training
timothybard
12
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.