>x = Alen(Array,1) && would return the number of rows in the array
>x = Alen(Array,2) && would return the number of columns in the array.
>x is just a variable.
Did you forget what forum we're in? *s* VB doesn't have this function.
One other thing to note with what Ed said. UBound() will give you the upper bound of an array but that may not be the same as Alen(). In most cases it is because the array will be dimensioned starting with 0 or 1. However, you can dimension an array using values other than these. For example, you can Dim laTest(2 to 20, 3 to 15, 4 to 50). UBound(laTest,1) will give you 20, UBound(laTest,2) will give you 15, etc...
LBound() will give you the lower bound of an array dimension. So the following VFP code:
for lxx = 1 to Alen(laTest,1)
some code
endfor
would be this in VB:
For lxx = LBound(laTest, 1) To UBound(laTest, 1)
some code
Next
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao