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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with TMemo->Lines->Insert

Status
Not open for further replies.

hstijnen

Programmer
Nov 13, 2002
172
NL
Hi,

I've a Tmemo in a form, in which one can enter some text. Also there is a button, which onclick puts some standard text in the memo with memo->lines->Insert(row, "blahblah"). And it works almost fine.
However, in the case that I put some text on a new line in the memo, without leaving that line, and click the button then no text is Inserted!

How can that happen?
I think it could be the memo is then in a sort of edit mode wherein one is working in a buffer. This mode should then first be ended.

Thanks for help

Henk

 
i am not sure what your code does to help you, would be good if you can paste it here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top