RichEdit save to memo-field

RichEdit save to memo-field

Postby Marc Vanzegbroeck » Sat Mar 28, 2009 5:04 pm

Hi,

I use

Code: Select all  Expand view
@ 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: RichEdit save to memo-field

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests