vbScript - Arrays -
i new in vbscript , wondering if please advise:
i trying loop single value in array. see following:
dim reportesta(3) reportesta(0) = "report1" reportesta(1) = "report2" reportesta(2) = "report3"
i wrote sub procedure follow:
sub reporte1() each i=0 in reportesta posicionarcursor() ''this sub commkeys reportesta(0) next end sub
it won't work , not sure doing wrong. other way though be:
for i=0 0 posicionarcursor() ''this sub commkeys reportesta(0) next
there 2 syntax loop through array:
for each in reportesta ' code here next
or one:
for i=0 ubound(reportesta) ' code here next
Comments
Post a Comment