Forum > Editor

No Text field for TMemo


My data entry form needs to include a field for extended comments from the user. TMemo appeared to be the best choice for that, but I don't see how to get rid of the Memo1 text that automatically appears in it. Most of the other data entry fields have a 'Text' property that can be cleared, but TMemo does not. I see how to clear it when the user enters the field, and have done so, but I don't want the 'Memo1' text to appear there at all. Is there not some way to prevent that?

The memo's text can contain multiple lines. Therefore it is accessible in the Lines property which descends from TStrings.

Click on the '...' next to the Lines property. This opens the Lines property editor in which you can delete the "Memo1".

Thanks, that did the trick!


[0] Message Index

Go to full version