You can use a Listbox or a multiline textbox and show the string array in that control.
Main Topics
Browse All TopicsI need to create a quick report form for the sales manager with vb.net.
The problem I am having is with the array function. How do I properly store and display all the totals?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There is a pattern to the salary ranges, where each one is a range of $100. You could do something like this:
Dim totalAmount As Decimal = 252.45
Dim rangeIndex As Integer = totalAmount \ 100
rangeIndex = 2
Dim totalAmount As Decimal = 52.3
Dim rangeIndex As Integer = totalAmount \ 100
rangeIndex = 0
CodeCruiser:Its because you are checking on totalSalary in the loop but the totalSalary does not seem to be changing. I think you need to restructure the code. What exactly are you trying to do?
For each salespersons sales I calculate the total + $200 * a percentage for the total salary amount.
totalSalary = 200 + ((Val(inputSalesTextBox.Te
You can continue putting the sales amounts in. I need to store those values and then display them according to the amounts and number of entries
Amounts - # of entries
$200 - $299 - 3
$300 - $399 - 0
$400 - $499 - 1
CodeCruiser: I put the calculation of the totalSalary inside the loop. Again I am learning loops so if this is not right would yu please show me an example.
For Me.salaryCounter = 0 To 9
totalSalary = 200 + ((Val(inputSalesTextBox.Te
totalSalaryValueLabel.Text
For Me.employeeCounter = 0 To 9
If (Val(totalSalary) >= 200 And Val(totalSalary) <= 299) Then
Counters(0) += 1
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2009-08-28 at 09:29:03ID: 25209284
I don't quite understand how you want to display the 'salaryRange' values (if that is the array that you are talking about)...