redim an array in a strucure used with a list (4.50B4)

Just starting out? Need help? Post your questions and find answers here.
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

redim an array in a strucure used with a list (4.50B4)

Post by Hurga »

OK, heres my problem

I made a structure with an array. (Thx to 4.50 it's now possible :D )
Then I made two lists with these structure.
Now I want to redim the array in the structure (for all elements of alllists using this structure)

Cant get it working

Is this a bug or is this just not possible to do?
I case that this is not possible... why it is possible with normal Vars?

Code: Select all

Structure Sws
  Array StrcArray.i(10) 
EndStructure


NewList test.sws()
NewList test2.sws()

AddElement(test())
AddElement(test())

Debug SizeOf(Sws)

For x = 0 To 10
  test()\StrcArray(x)= x 
Next

;both dont work... can anyone explain why.
ReDim  test()\StrcArray.i(15)
ReDim  SwsPlayer\StrcArray.i(15) 

Debug SizeOf(Sws)

CallDebugger