如何获取数组中的下一个值以在循环中的条件中使用。
dim x(10) as integer
dim d1,d2 as integer
for i = 0 to 10
d1 = x(1) 'first value in an array e.g. is 10
d2 = x(2) 'second value in an array e.g. is 20
if (d2-d1) > 1 then
Msgbox "Item Count"
else
msgbox "Item Deleted"
end if
next i