I'm sorry, I have never tried with an IP number in the path, so it may be possible that you have to find another solution.
NB! I leave for a short vacation shortly, so I won't be available for more than a week.
>Hello Tore
>
>I try with your last coding but without sucess, but if i change where i put : "&&I change here, your code work."
>Why that fail if i use a path with ip address like \\127.0.0.1\Imagens\
>
>Thanks for your interest to help me, i wait for your reply.
>Luis Santos
>
>Local lcFile As String, ;
> lcImageName As String, ;
> lcImagePath As String
>Select ImgMarca && My cursor name
>m.lcImagePath = ([c:\imagens\]) && I changed here
>Scan
> m.lcImageName = Alltrim(ImgMarca.campo)
> m.lcFile = m.lcImagePath + m.lcImageName + [.jpg]
>
> If Adir(laDummy, m.lcFile) > 0 && i change here
> Replace u_imgMarca With m.lcImagePath + laDummy(1, 1)
> Else
> Replace u_imgMarca With []
> Endif
>Endscan