Login | |
|
 |
RE: Subscript out of range - 5/22/2007 8:38:02 AM
|
|
 |
|
| |
webren
Posts: 16
Score: 0
Joined: 5/17/2007
From: College Park, MD
Status: offline
|
Array
|
|
| |
|
|
|
 |
RE: Subscript out of range - 5/24/2007 11:21:40 AM
|
|
 |
|
| |
webren
Posts: 16
Score: 0
Joined: 5/17/2007
From: College Park, MD
Status: offline
|
Currently using? I am using Microsoft's IIS server and the SQL language. Is there anyway to check the next element in the array without comparing arrayElement to arrayElement + 1?
|
|
| |
|
|
|
 |
RE: Subscript out of range - 5/25/2007 7:22:39 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
There is a good chance that is the fix. It depends on how the counter is initialized and incremented. That is why we need to see the code and we still haven't seen that part of the code.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Subscript out of range - 5/30/2007 12:34:44 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
I don't know how more plain I can be. We need to see your actual code. Examples just won't cut it. We need to see how you actually initialize and increment counters.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Subscript out of range - 5/30/2007 5:33:24 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
Still not all of the code, but enough that we can start to unravel the issue. Where and how is rowCounter initialized? What does theArray look like? Could you give an example? This line is not valid syntax If (cols = Weekday(theArray(3, rowCounter))) And (getMonth(theArray(3, rowCounter)) = You refer many times to a database. Is this data held in a database? If so, then there are probably better ways to access the data than multi-dimensional arrays. In the code that you posted, difference is never actaully used for anything. What is it's purpose? Which specific line gives you an error and what is the exact text of the error?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Subscript out of range - 5/30/2007 6:55:18 AM
|
|
 |
|
| |
webren
Posts: 16
Score: 0
Joined: 5/17/2007
From: College Park, MD
Status: offline
|
Warning, it's a lot of code... | | |