Hi Nick,
If the file is not found ADIR() will return 0 and no array is created. I would check for the return value of the ADIR()
Yelena
>I am using ADIR() command and it seems like the array is not creating. Here is the code:
>
>
> ADIR(a__gen1,'debtfil2.debtait')
> datestatus = a__gen1(1,3)
>
>
>The error I am getting is "File 'a__gen1.prg' does not exist." when I get to the datestatus. I am trying to capture data of the file and the file does exist. Any clues?
>
>thanks
>Nick