Hi,
I want update a general field (photo) that contains a JPG photo in my table customer
the structure of the table customer is the following:
- Code: C(12)
- Photo: general
To update the new photos in my table customer I use the following code:
----------------------------------------------------------
USE CUSTOMER
DO WHILE !EOF()
Ccode=custmer.Code && id custmer: "E123456987FG"
MyFile=Ccode+".jpg " && exp: E123456987FG.JPG
IF FILE(MyFile) && Test if the photo exists
APPEND GENERAL photo FROM LOCFILE(MyFile) LINK
ENDIF
SKIP
ENDDO
----------------------------------------------------------
When I display my customer's photos I see the name of the file photo (for example D2005E215445.JPG) instead the photo, however when I update by hand one by one the file using foxpro that works correctly.
Thank you
Mistral
I want update a general field (photo) that contains a JPG photo in my table customer
the structure of the table customer is the following:
- Code: C(12)
- Photo: general
To update the new photos in my table customer I use the following code:
----------------------------------------------------------
USE CUSTOMER
DO WHILE !EOF()
Ccode=custmer.Code && id custmer: "E123456987FG"
MyFile=Ccode+".jpg " && exp: E123456987FG.JPG
IF FILE(MyFile) && Test if the photo exists
APPEND GENERAL photo FROM LOCFILE(MyFile) LINK
ENDIF
SKIP
ENDDO
----------------------------------------------------------
When I display my customer's photos I see the name of the file photo (for example D2005E215445.JPG) instead the photo, however when I update by hand one by one the file using foxpro that works correctly.
Thank you
Mistral