Page 1 of 1

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

Posted: Thu May 06, 2010 6:20 pm
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