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)
ArraySize() is for dynamic arrays. You are using a static array in which ArraySize() is not required because, well, the array is static and is not subject to a re-dimension at any time! The following works fine.