Hi,
EMPTY() & REPLACE are a database functions and won't work. Check out the low level file functions in help, like FOPEN() etc, you need to get a file handle first.
>Hello comunity
>
>I have write this code above, that is based on a cursor, also on my local computer on disk C: i create a folder "Imagens" where i put in my image "Vinhos.jpg", also i don´t understand why the field ImgMarca.u_imgMarca keep the following path : \\127.0.0.1\Imagens\vinhos.jpg.
>
>
>select ImgMarca
>scan
>ImagePath = ('\\127.0.0.1\imagens\')
>ImageName = alltrim(ImgMarca.campo)+'.jpg'
>
>
>if NOT empty(sys(2000,"ImagePath+ImageName"))
> replace ImgMarca.u_imgMarca with alltrim(ImagePath+ImageName)
>else
> replace ImgMarca.u_imgMarca with ''
>endif
>endscan
>
>
>Someone could give me an Help, because i need to solve this problem quickly.
>
>Many thanks
>Luis Santos
Regards N Mc Donald