TRichMemo. how do i make it store more?

Posted on 2004-10-22
Last Modified: 2010-04-04
i have a component, that derives from TRichMemo.
i have discovered it has a limit. and i want to bump it up (to infinate prefurably).
ive tried using the lines.capacity, but it doesnt seem to want to work.
is it something im doing wrong?

ok so, how do i make a TRichMemo store more?

(Delphi 7 by the way)
Question by:Kristian
    LVL 17

    Accepted Solution


    Are you talking about the standard TRichEdit component? If yes then try:

    uses RichEdit;

    Richedit1.Perform(EM_EXLIMITTEXT,0,$FFFFF);  //1 MB Limit, higher values are also possible

    RichEdit1.MaxLength := 1048575; // for 1 mb

    Regards, Geo
    LVL 1

    Author Comment

    Perfect, thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    934 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now