Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to verify if file exist an place the path on my curs
Message
From
07/06/2013 10:26:47
 
 
To
07/06/2013 06:49:41
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01575803
Message ID:
01575834
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform