FMXTMemoLinesProperty (C++)
From RAD Studio XE2 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:
Memo1->Lines->LoadFromFile("myDocument.txt"); ShowMessage("The 9th line of my file is:" + Memo1->Lines->operator[](8)); ShowMessage("The number of lines in my file is:" + IntToStr(Memo1->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\n2nd line"; Memo1->Lines->SaveToFile("NewDocument.txt");
See Also
- FMX.Memo.TMemo.Text ( fr | de | ja )
- FMX.Memo.TMemo.Lines ( fr | de | ja )
- Delphi version of this example