>Hi,
> Thank you for reply. It work fine if I store them in cursor, but will cause error if stored in array. why?
>
>thank you
Because every element of the array is adding to you total variable count and that has a finite limit.
A cursor will be just as fast anyway as it is all in memory (unles it gets so big that VFP pushes it to disk). cursors are very fast.
Ken B. Matson
GCom2 Solutions