SizeOf to work on structure arrays
Posted: Sun Oct 10, 2010 1:32 am
I can still get the size of the array using a workaround. But shouldn't this work with SizeOf on the structure entry itself?
Code: Select all
Structure TestStruct
Entry.s[16]
List TestList.l()
EndStructure
TestStruct.TestStruct
;/ Output 0
Debug ListSize(TestStruct\TestList())
AddElement(TestStruct\TestList())
;/ Output 1
Debug ListSize(TestStruct\TestList())
;/ Works fine
Debug SizeOf(TestStruct\Entry)/SizeOf(String)
;/ Not recognized as an array
ArraySize(TestStruct\Entry)