View Single Post
Old 07-30-2010, 06:41 PM   #4
pnyklr

 
Drives: A Gift From My Wife
Join Date: Apr 2009
Location: Powder Springs, GA
Posts: 1,557
Trying to accomplish this equation 100-150= negative 50. Instead I am getting a positive 50.

My head hurts.

Count = 2

First time through result = 0, myarray(0) = 100. So 100 minus 0 =100. Result =100
Second time through result =100, myarray(1) = 150. So 150 minus 100 = 50.

--------------------------------------------------------------

For count As Integer = 0 To myarray.Length - 2

result = myarray(count) - result

Next
pnyklr is offline   Reply With Quote