VBScript: Error 10023 in : Array index out of range (trouble when reusing an array variable) -
Using Six ActiveX scripting (long story), do I have nested if statements which reuse the same return variable I <<>
script looks almost identical:
< Code> variable rtnArray variable if variable 1 & lt; & Gt; "" Then SQL query against the DB2 database rtnArray = DB2 Skyuels search (query) if Ubound (Artianarere) = 0 Then 'Ditito Artianaararu = DB2 Skyuels search (Query 2) Msbibiaks' Ubound (Artianaarara) = 0 Then' Error! "It never create
What's odd that the same code structure here last week I wrote is working in a script; I just changed the name of some queries and function (find> change)
After the second query, I MsgBox tried CStr (rtnArray (0) (0))
but it yields Error 10025: An array of different narrow Indexing is there.
Error code associated with the following instructions:
You can either store it in another variable, or redeem
to rtnArray variable to tease the appropriate size. For Redim, you need to know the size.