> > What does that mean, Koen?

> > How can you make the difference with ALEN()? It returns same values if an element "exists" (has a value set) or not.

> >

> >

> > CLEAR
> > DIMENSION aArr[1]
> > ?ALEN(aArr) && returns 1
> > ?ALEN(aArr,1) && returns 1
> > ?ALEN(aArr,2) && returns 0
> > RELEASE aArr
> > ?
> > DIMENSION aArr[1]
> > aArr[1]="A" && -> element has a value set.
> > ?ALEN(aArr) && returns 1
> > ?ALEN(aArr,1) && returns 1
> > ?ALEN(aArr,2) && returns 0
> > RELEASE aArr
> > ?
> > * Multi col
> > DIMENSION aArr[1,1]
> > ?ALEN(aArr) && returns 1
> > ?ALEN(aArr,1) && returns 1
> > ?ALEN(aArr,2) && returns 1
> > RELEASE aArr
> > ?
> > DIMENSION aArr[1,1]
> > aArr[1,1]="A" && -> element has a value set.
> > ?ALEN(aArr) && returns 1
> > ?ALEN(aArr,1) && returns 1
> > ?ALEN(aArr,2) && returns 1
> > RELEASE aArr
> >

> >

> >

> > Regards

> > Samir

>

>

>

> Samir,

>

> Maybe I dont understand. But mu understanding of < if something exists> is that something is there and not what something contains, and if something contains something it is there, but again maybe I am wrong.

>

> Please consider Tony wants to know if an array exists and is therefore applying the command dimension, that is in my opinion wrong.

> with dimension you give a dimension to an array.

> with alen() you can check the length of an array.

> I pointed that in the help file you can check quote

*If the array is a one-dimensional array, ALEN( ) returns 0 (no columns)*.unquote and you come with lots of arguments about a 2-diomensional array.

> What is your point here?

> Furthermore it is not my habit to react in this way but Tony was, lets say it nicely, telling us VFP is a lousy language without again, saying it nicely, not nowing the least of the language judging his questions.

>

> Regards,

>

> Koen

I think we agree that Tony is a capable programmer. He's trying to use VFP like a lower level language.

Mike Yearwood

Microsoft MVP Visual FoxPro 2008, 2009

We have enough youth. We need a fountain of smart!

There may be many ways to skin a cat, but there are very few right ways to do it.