Page 1 of 1

MemoEdit - TEXTBOX - RICHEDITBOX

Posted: Sat Nov 28, 2020 5:46 am
by AUGE_OHR
hi,

i want to show/edit a MEMO

when use a TEXTBOX i got all Lines in "ONE Line" and i can“t press ENTER for next Line :o
when use a RICHEDITBOX i have to use

Code: Select all

   cBody := aWork[ LABEL_MEMO ]
   cBody := STRTRAN(cBody,CHR(0),CRLF)
   cBody := STRTRAN(cBody,CHR(10),CRLF)
and it look nice but when i SAVE it and look into my Xbase++ App it is in "ONE Line" with Space (?) between ...

i try

Code: Select all

   REPLACE OUTLOOK->MEMOTEXT WITH STRTRAN(cMEMOText,CHR(32),CRLF)
   REPLACE OUTLOOK->MEMOTEXT WITH STRTRAN(cMEMOText,CHR(141),CRLF)
   REPLACE OUTLOOK->MEMOTEXT WITH MEMOTRAN(cMEMOText,CRLF)
but still "one line" in Xbase++ App

so how to read a MEMO and which Control under harbour do i have to use :idea:

Re: MemoEdit - TEXTBOX - RICHEDITBOX

Posted: Sun Nov 29, 2020 2:06 am
by martingz
AUGE_OHR im use edit box with memos

Re: MemoEdit - TEXTBOX - RICHEDITBOX

Posted: Sun Nov 29, 2020 2:35 am
by AUGE_OHR
hi,

oooooh, YES

i made a Error with TEXTBOX which is a "single-line-edit". :roll:
it does not have different lines ... only Word-Break

EDITBOX is the right Control for MEMO and i have no Problem any more. THX :D