Oct 11, 2005 #1 morg27 MIS Feb 4, 2002 16 US I have a click event that should add the values in a multi-dimensional array. How should I go about doing this?
I have a click event that should add the values in a multi-dimensional array. How should I go about doing this?
Oct 11, 2005 #2 TipGiver Programmer Sep 1, 2005 1,863 Just loop through all cells (for/next each inside another) and: dim Sum as integer = 0 dim i,j as integer For i=0 to ... for j=0 to ... sum +=myArray(i,j) next j next i This is for 2-dim array. The main thing is: sum +=myArray(i,j) Upvote 0 Downvote
Just loop through all cells (for/next each inside another) and: dim Sum as integer = 0 dim i,j as integer For i=0 to ... for j=0 to ... sum +=myArray(i,j) next j next i This is for 2-dim array. The main thing is: sum +=myArray(i,j)