Recent

Author Topic: Get line from tmemo  (Read 1568 times)

samoraj

  • New Member
  • *
  • Posts: 22
Get line from tmemo
« on: September 14, 2018, 07:57:59 pm »
Hi all, Thanks all for fast answer always !
my new question is how i get line from Tmemo and use this line for caption on StaticText ?
StaticText101.caption:=Memo1.Lines[2]; somting is wrong :(

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: Get line from tmemo
« Reply #1 on: September 14, 2018, 08:17:45 pm »
Code: Pascal  [Select][+][-]
  1.   if Memo1.Lines.Count > 2 then
  2.     StaticText101.Caption := Memo1.Lines[2];

samoraj

  • New Member
  • *
  • Posts: 22
Re: Get line from tmemo
« Reply #2 on: September 14, 2018, 08:20:16 pm »
BIG Thanks !!!

 

TinyPortal © 2005-2018