Use a binary memo field instead of a General field. You can use this line to get the file into the memo field:
Append Memo Img From <File> Overwrite
where Img is the name of the binary memo field. In Visual FoxPro 6.0, use an image control to display such a .JPEG file. This requires the following code in the Refresh event of the form:
Local lcFile
* Delete the previous image, if it exists
If File(This.Image.Picture)
Erase (This.Image.Picture)
Endif
* Create a new temporary file on disk
* SYS(2023) returns the current temporary path
lcFile = SYS(2023)+"\"+Sys(3)+".JPG"
Copy Memo myTable.Img to (m.lcFile)
This.Image.Picture = m.lcFile
Now the question:where to put Append Memo Img From <File> Overwrite
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.