Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


TRichMemo. how do i make it store more?

Posted on 2004-10-22
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Accepted Solution

geobul earned 200 total points
ID: 12380921

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

Author Comment

ID: 12380996
Perfect, thank you.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

610 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