I am fairly new in vbScript and was wondering if anyone could please advise:
I am trying to loop for a single value in an array. See the following:
Dim reportesTA(3)
reportesTA(0) = "REPORT1"
reportesTA(1) = "REPORT2"
reportesTA(2) = "REPORT3"
I wrote a Sub procedure as follow:
Sub REPORTE1()
For Each i=0 In reportesTA
posicionarCursor() ''This is another sub
commKeys reportesTA(0)
Next
End Sub
It won't work and I am not sure what I am doing wrong. The other way I though to do this would be:
For i=0 to 0
posicionarCursor() ''This is another sub
commKeys reportesTA(0)
Next
it won't work?