array.length = error

BlitzMax Forums/BlitzMax Beginners Area/array.length = error

Why I get an error when I use length with arrays?
According with de docs... :
Arrays also provide a read-only length field that returns the total number of elements in the array.

Strict

Type MyType

	Field Slots:Int[]

	Method New()
		Slots=Slots[..10]
		Print Len(Slots) ' OK


		Print Slots.Length() ' ERROR expression of type INT cannot be invoked
	EndMethod
EndType

Local test:MyType=New MyType


It prvides a field or a function?

A field is not a function so use
Print Slots.Length


hehe, thanks.
XD