Can you actually define the variable type in VBScript? I haven't really tried WScript except for what's implemented in DesktopX, but I thought that you couldn't do that. At least I think I got error when trying to define spesific types. But I could be wrong. I have been busy since last summer with projects so I haven't used DX for a while now. I could be mixing stuff up.
If you send the index value to pass on to the array to a text object, does give you the value you need for it?