I am trying to concatenate these variables (col1 thru col15) using for ..next loop, without success.
Any help will be greatly appreciated. Thanks
scontent= ""
intMonth = 10
col1 = "Budget"
col2 = "gap"
Col3 = "blue jeans"
col4 = "100"
col5= "101"
col6= "102"
col7= "103"
col8= "101"
col9= "102"
col10= "105"
col11= "102"
col12= "102"
col13= "102"
col14= "102"
col15= "102"
for i = 1 to (intMonth + 3)
if ((intMonth + 3) = 4 or i = intMonth + 3) then
scontent = scontent & col & i & vbCrLf
else
scontent = scontent & col & i & ","
end if
'wscript.echo (scontent)
next
Any help will be greatly appreciated. Thanks
scontent= ""
intMonth = 10
col1 = "Budget"
col2 = "gap"
Col3 = "blue jeans"
col4 = "100"
col5= "101"
col6= "102"
col7= "103"
col8= "101"
col9= "102"
col10= "105"
col11= "102"
col12= "102"
col13= "102"
col14= "102"
col15= "102"
for i = 1 to (intMonth + 3)
if ((intMonth + 3) = 4 or i = intMonth + 3) then
scontent = scontent & col & i & vbCrLf
else
scontent = scontent & col & i & ","
end if
'wscript.echo (scontent)
next