MemoEdit - TEXTBOX - RICHEDITBOX

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

MemoEdit - TEXTBOX - RICHEDITBOX

Post 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:
have fun
Jimmy
martingz
Posts: 401
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

Re: MemoEdit - TEXTBOX - RICHEDITBOX

Post by martingz »

AUGE_OHR im use edit box with memos
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: MemoEdit - TEXTBOX - RICHEDITBOX

Post 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
have fun
Jimmy
Post Reply