visual basic array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • etienne zammit
    New Member
    • Dec 2011
    • 1

    visual basic array

    Good morning

    I have a array which contains the totals of all the dice simulations and would like to check the array for any duplicates and if present add them up and then display all the duplicates numbers and for each duplicate number show a bar and the total at the end for each duplicate number.
    Hope that maybe somebody can help me as been wrecking my head on it to no avail Thanks.
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    Is in each field in the array a dice number?
    If not, please attach in Bytes an example of the values.

    If so:
    Run through the array from Lbound to Ubound and use "Select Case" to add 1 to a variable(intege r).

    Set the "Left" of a colored rectangle in a picturebox to the value of the variables.

    Comment

    Working...