# Array question

**URL:** <https://forum.servoy.com/t/array-question/1988>\
**Category:** Classic Servoy\
**Created:** [June 8, 2004, 9:25am UTC](https://forum.servoy.com/t/array-question/1988 "2004-06-08T09:25:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [June 8, 2004, 9:25am UTC](https://forum.servoy.com/t/array-question/1988/1 "2004-06-08T09:25:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [June 8, 2004, 2:42pm UTC](https://forum.servoy.com/t/array-question/1988/2 "2004-06-08T14:42:34Z")

</div>

![:oops:]( "Embarassed")

Found my problem… must be wordblind here…

lenght \<\> length…

sorry
