Click to See Complete Forum and Search --> : some questions about asp...


AoiSora
10-02-2003, 11:59 PM
Halo !!
what is the different about the for loop ..

<%
dim total, x, y
for x= 3 to 8 'step 2
total = total + x
next
response.write total
%>

if without the ' before "step 2", the counting will be increase 2 each time.. but i don't understand how the ' work???

thanks for helping !!~~

rdoekes
10-03-2003, 07:52 AM
That's the comment indication. In your example VBscript sees the step 2 as a comment.