Board index » delphi » Clear method for TMemo ?

Clear method for TMemo ?

I call the clear method :
        memo.Clear;

but the text is still there. Why ??

Thanks in advance,

Jonathan.

 

Re:Clear method for TMemo ?


Quote
iss009@thunder (J.Gould) wrote:
>I call the clear method :
>    memo.Clear;

>but the text is still there. Why ??

>Thanks in advance,

Hello Jonathan,
The solution is of course - "use Memo.Lines.Clear instead" but the
problem is interesting - I didn't know there is Clear method in Memo
I've checked sourced and Object Inspector and it is clear :-) that
Clear is inherited from TCustomEdit.
Maybe there is just small bug - Borland has forgotten to write this
simple 1-line method in TMemo.

Cheers,
Pawel

--
\||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||/
-         Pawel Ksiezyk     ksie...@bull.mimuw.edu.pl        -
-    Institute of Informatics   Warsaw University   Poland   -
/||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\

Re:Clear method for TMemo ?


Quote
J.Gould wrote:

> I call the clear method :
>         memo.Clear;

> but the text is still there. Why ??

        Are you certain "memo" is the name of the memo?
The Clear method works for me...

--
David Ullrich
Sig file accidentally deleted - sorry.

Other Threads