Lazarus

Free Pascal => Beginners => Topic started by: samoraj on September 14, 2018, 07:57:59 pm

Title: Get line from tmemo
Post by: samoraj 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 :(
Title: Re: Get line from tmemo
Post by: Handoko on September 14, 2018, 08:17:45 pm
Code: Pascal  [Select][+][-]
  1.   if Memo1.Lines.Count > 2 then
  2.     StaticText101.Caption := Memo1.Lines[2];
Title: Re: Get line from tmemo
Post by: samoraj on September 14, 2018, 08:20:16 pm
BIG Thanks !!!
TinyPortal © 2005-2018