Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memo Size Problem 1

Status
Not open for further replies.

tbohon

Programmer
Apr 20, 2000
293
US
I have a memo component on a form and am reading a file into it for screen display.&nbsp;&nbsp;This works just fine for some files but, for others, it gives me an error and tells me that the file is too big for the memo field.<br><br>Since I don't know how big the actual (live) files will be, this might create a bit of an awkward situation &lt;g&gt;.<br><br>Any way to expand the memo field maximum size or is there a paging technique of which I need to be aware to allow me to display any size file?<br><br>Thanks!<br><br>Tom
 
Hello!<br>Excuse me fo my english :)<br>I heared that TMemo have limit on it size<br>and property MaxLength dont work properly.<br>Try to use TRichEdit.<br><br>To set MaxLength try:<br><br>RichEdit.Perform(EM_LIMITTEXT, Requested Size , 0)<br><br>I don't chek this, but maybe it help You:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vladimir.
 
Vladimir:<br><br>First, your English is just fine ... !<br><br>I had not thought to try TRichEdit - but I will do so first thing in the morning.<br><br>Spasibo!<br><br>Tom
 
Hello, Vladimir!<br><br>I just want to make a small remark...if you use a RichEdit control for plain text you should've changed the PlainText property to true. What this does is to change to RichEdit to a Memo field but with a greater capacity. I am writing this response because I think you'll meet some problems when trying to read from the RichEdit control. It will return its own formatted Text property. Sorry for being so long. Probably you've already worked this out but it's just a little prompt from me. Bye! ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top