Tie of Repetition in Tmemo

1

I'm using a Tmemo that receives data from an edit, but this data will be inserted x times, the question is:

By pressing the button Tmemo you will receive the data as follows:

Memo1.Lines[10] := ('linha adicionada'); 

I would like the edits to be cleaned when I clicked the button, and when the person types the new data and pressing the same button, the data was inserted in the line below in the Memo1.Lines[11] case. and so on ..

    
asked by anonymous 24.09.2015 / 14:59

1 answer

2

Next to insert in [10], [11] position, for example, use:

Memo1.lines.add('linha adicionada');

This will always add to the next line.

And to clean your Edits use:

edit1.clear;
    
24.09.2015 / 15:07