FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RichEdit save to memo-field
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
RichEdit save to memo-field
Posted: Sat Mar 28, 2009 05:04 PM
Hi,

I use

Code (fw): Select all Collapse
@ 0,70 RICHEDIT oFGet VAR cMemo OF sDlg SIZE 270,500 PIXEL FONT oFont ON CHANGE marcbrowver()


I was thinking that variable 'cMemo' was holding the text of the edit, but it's empty.
How can I get the contents of the RICHEDIT-field?
I wanted to store this in a memo-field.

Thanks,
Marc
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: RichEdit save to memo-field
Posted: Sat Apr 04, 2009 10:16 PM

Marc,

To get the plain text you can do:

MsgInfo( oFGet:GetText() )

to get the rich text:

MsgInfo( oFGet:SaveAsRTF() )

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion