Is it not possible to dimension an array with a variable in vbscript i.e dim arr(I) rather than dim arr(10). whenever I try it I get a compile error that tells me it is expecting a literal integer. Why is this. Any ideas?
No, unfortunately you can't dim an array with a variable because VBScript is stupid like that. What you can do is ReDim it with a variable:<BR><BR>Dim array()<BR>ReDim array(intSize)<BR><BR>Stupid, isn't it? I have no idea what possible reason there could be...<BR><BR>Dunc