With the new dot syntax for labels it has become pretty easy to access a label by name, but is it still possible to access it by number? If I want to get the last label on an item, I would have to know how many labels the item has in total and be able to use that as the index.
But apparently the LabelsArray datatype does not support the Length property nor will it accept anything other than a string name. It doesn't seem to be possible to get a label by its index unless I use the deprecated getlabels functions.
So how can I get the total number of labels on an object?
And how can I access the label with its index?