Recent

Author Topic: No Text field for TMemo  (Read 242 times)

whallis

  • Newbie
  • Posts: 4
No Text field for TMemo
« on: August 17, 2022, 07:02:53 pm »
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?

wp

  • Hero Member
  • *****
  • Posts: 10030
Re: No Text field for TMemo
« Reply #1 on: August 17, 2022, 07:08:39 pm »
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".

whallis

  • Newbie
  • Posts: 4
Re: No Text field for TMemo
« Reply #2 on: August 19, 2022, 05:18:03 pm »
Thanks, that did the trick!

 

TinyPortal © 2005-2018