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

I am getting the below error stating that
"The Array is fixed or temporarily locked" while using ReDim
Pls give me the solution.

Regards,
RekhaPramod
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Rekha,

Can you provide the code?
Reply
#3
Solved: 11 Years, 4 Months ago
I just gave

Dim a(5)
ReDim a(10)

Regards,
Rekha.K
Reply
#4
Solved: 11 Years, 4 Months 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
#5
Solved: 11 Years, 4 Months ago

Thanks its working fine now
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)