Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in Array
#4
Solved: 10 Years, 9 Months, 3 Weeks ago
Hi,

To use ReDim statement you should create an array with no size.

Dim a(5)
This statement will create an fixed size array, so you can not use redim with this array.

Instead Use :
Code:
Dim a()    
ReDim a(10)
ReDim a(20)


Cheers
TurtleRock
Reply


Messages In This Thread
Error in Array - by Rekhapramod - 02-23-2011, 11:38 AM
RE: Error in Array - by manishbhalshankar - 02-23-2011, 11:39 AM
RE: Error in Array - by Rekhapramod - 02-23-2011, 12:23 PM
RE: Error in Array - by TurtleRock - 02-23-2011, 04:08 PM
RE: Error in Array - by Rekhapramod - 02-23-2011, 05:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to convert a single dimension array to two dimensional array venkatesh9032 3 5,243 02-10-2014, 03:07 PM
Last Post: pranikgarg
  Adding array to another Global array in VB Script test911 1 3,012 12-02-2012, 12:40 PM
Last Post: parminderdhiman84

Forum Jump:


Users browsing this thread: 1 Guest(s)