Array question

Hi all,

I’m having some problem with arrays. I start off with a string of text, from which I create an array, since the string of text contains multiple strings, separated by the “@” character. See code below:

var adresses = new Array;
adresses = (output.slice(7)).split(“@”);
plugins.dialogs.showSelectDialog(‘Select’,‘please select an adress’, adresses);
var test = adresses.lenght;
plugins.dialogs.showInfoDialog(‘Title’, test,‘OK’);

Now, the array seems to have been created correctly, since the showSelectdialog works as it should. My problem is that I want to get the number of entries in the Array. The bottom two lines of code, I think, should show me that in the Infodialog, but what I’m getting is a string of text, like with java…undefined…

What am I doing wrong here?

Paul

:oops:

Found my problem… must be wordblind here…

lenght <> length…

sorry