>Hi Ed:
>
>It must have been the case sensitive issue. I wonder if you could help me with one other thing. I need my array to list all the files except .fpt,
>using "declare aFilelist[1,5], I just receive the first file. I won't know
>know how many files will be in my directory so it'll be a variable amount.
>How can I do this? I appreciate your help. Thanks.
If the array doesn't exist before the COPY TO ARRAY it should be created fresh, so you have two options - either
RELEASE aFileList instead of the DECLARE, or set the entire array to NULLs by
aFileList=NULL before doing the COPY TO ARRAY, and then finding the first NULL and redimensioning.
I just tried both, and both work - if the scope of the array is local to the function that creates it, I'd go with the first approach.
>
>Sheena