Hi.
I don't know if it does exactly what the javascript line does. What about "c = False"?
Anyway, I would do it like this:
l = Ubound(array)
For i = -1 to l
'Some stuff
j = i
Next i
i=-1
Why this? It is not necessary.
j=l-1
Why this? You don't use j until you do j = i.
j=i
Why this? You don't use j anywhere else.
Maybe there is some more code you did not provide.