1
Q
迭代在從環
A
回答
6
您可以使用STEP:
for x = 0 to 100 step 10
next x
這將帶你穿越0, 10, 20... 100
既然你要開始在1
去1, 10, 20... 100
,這裏是一個輕微的修改
for x = 0 to 100 step 10
if x = 0 then
y = 1
else
y = x
end if
'// use y in all calculations downstream instead of x
next x
0
For y = 0 To 10
If y = 0 Then x = 1 Else x = 10 * y
' do stuff with x
Next y
明白了 - t hanks傢伙 – user446667 2010-09-14 19:19:19