Suppose there is some text in the memo. How to leave only the first 32 characters in the memo, and delete everything else?

    2 answers 2

    Memo1.Text := copy(Memo1.Text, 0, 32); 

    something like this, but I don’t remember what type of Memo1.Text you may need to convert to PChar

      If you do not take into account the signs of transfer and the breakdown by rows, then so:

       Memo1.Text := Copy(Memo1.Text, 1, 32);