>Code #1 is supposed to do the same thing as code #2, but code #1 doesn't work when I run it from my command window. It generates an error message, "File is in use by another", why?
>
>Thank you for your time.
>
>CODE #1.
>REPLACE uploaded WITH .T. FOR !RLOCK()
>
>CODE #2.
>USE accounts SHARED
>DO WHILE !EOF()
> IF !uploaded
> IF RLOCK()
> REPLACE uploade WITH .T.
> ENDIF
> ENDIF
> SKIP
>ENDDO
If you set in second code "if !rlock()" then they would supposed to be doing the same. Second first checks if you can rlock(), first does the reverse and tries to do replacement in those records that you cannot rlock() (in use).
Cetin