FMXTMemoLinesProperty (Delphi)
From RAD Studio Code Examples
Description
This simple example shows how to load a file using FMX.Memo.TMemo.Lines, how to access the nth line, and how to return the number of lines in the TMemo control:
Memo.Lines.LoadFromFile('myDocument.txt'); showmessage ('The 9th line of my file is: ' + Memo.Lines[8]); showmessage ('The number of lines in my file is:' + inttostr (Memo.Lines.Count));
This example shows how to load two lines of text into a TMemo using the FMX.Memo.TMemo.Lines property:
Memo1.Lines.Text := '1st line' + sLineBreak + '2nd line'; Memo1.Lines.SaveToFile('NewDocument.txt');
Uses
- FMX.Memo.TMemo.Text ( fr | de | ja )
- FMX.Memo.TMemo.Lines ( fr | de | ja )