What error FERROR() returns? What is the value of temp(j,1) at the time of error?
>
> Im using the low level function (FOPEN) in VFP 7 and can't hardly figure out why it can't successfully open the file.
> What I am doing is put an array of text files in a specified directory and open it one by one using for loop. But when tried to substitute directly the name of the file in FOPEN parameters (for debugging purpose), the file will be successfully opened.
>Any help will be gladly appreciated
> Code:
>
> CLOSE ALL
> CLEAR ALL
>
> DIME temp[1]
> lcdirarray=adir(temp,'c:\inetpub\ftproot\icms\sbslsop*.txt.old')
>
> FOR j = 1 TO dirarray
> x=FOPEN(temp(j,1),2)
> ?x && for debugging
> WAIT ''
> ENDFOR
--sb--