Page 1 of 1

Image in MEMO field

Posted: Tue May 30, 2023 5:55 pm
by mauri.menabue
Hi All
how do you copy an image into a memo field?
As was done in the wwonders file in the examples folder of fwh. The program to view that file is xbrimag1.exe
Thank you

Re: Image in MEMO field

Posted: Tue May 30, 2023 7:01 pm
by nageswaragunupudi
From what source do you want to copy?

If from file,

Code: Select all | Expand

FIELD->IMAGEFIELD := MEMOREAD( "name.jpg" )
If you want to copy an image from some external source (like a webpage), xbrowse makes it simple.

While defining the xbrowse, set oBrw:lCanPaste := .t.
Keep your cursor on the image column of your xbrowse.
Go to external source like a webpage and copy any image.
Come back to xbrowse and press Ctrl+V on the cell.
The image is copied to the memofield.

Using the xbrimag1.prg itself, you can copy images from web or other sources and press ctrl+V to paste the image in the memofield.