You're using wrong function. LEN(aclient) is the same as LEN(aclient[1]) and returns the length of the first item in the array. ALEN(aclient,1) will give you a number of rows in the array.
>Thanks for your reply,
>I have define the public array
>the client file have 100 records, but I check the len of array is only 5.
>why ?
>please advise
>
>
>PUBLIC ARRAY aclient[1]
>SELECT client_code FROM client INTO ARRAY aclient
>FOR x = 1 TO LEN(aclient)
> ? aclient[x]
>NEXT x
>
--sb--