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 04:26:12
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
To
07/06/2013 02:16:52
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:
01575815
Views:
32
Hello Tore

Thanks for your reply, but i test it and the field u_imgMarca of my cursor don´t update with \\127.0.0.1\imagens\vinhos.jpg, why ?
i i use a messagebox(m.lcFile) , then they return to me : \\127.0.0.1\imagens\vinhos.jpg
Also, laDummy is what ?
also, how to use wildcard on your code to include any extension, like you suggest ?
I don´t understand laDummy ??


Local lcFile As String, ;
lcImageName As String, ;
lcImagePath As String
Select ImgMarca && My cursor name
m.lcImagePath = ([\\127.0.0.1\imagens\])
Scan
m.lcImageName = Alltrim(ImgMarca.campo) + [.jpg]
m.lcFile = m.lcImagePath + Forceext(m.lcImageName, [jpg])
If Adir(laDummy, m.lcFile) = 1
Replace u_imgMarca With m.lcFile
Else
Replace u_imgMarca With []
Endif
Endscan


I hope you can help me

Many thanks
Luis Santos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform