FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Image in MEMO field
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Image in MEMO field
Posted: Tue May 30, 2023 05:55 PM

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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Image in MEMO field
Posted: Tue May 30, 2023 07:01 PM
From what source do you want to copy?

If from file,
Code (fw): Select all Collapse
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.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion