FMXTMemoSelTextProperty (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

Description

A very simple example that selects a range of text using SelStart and SelLength. Once selected, SelText is used to extract the selected text.

Code

  Memo1.SetFocus;
  Memo1.SelStart := 12;
  Memo1.SelLength := 20;
  showmessage (Memo1.SelText);

Note: The TMemo component should have focus when selecting text.

Uses