* * *

Author Topic: Get line from tmemo  (Read 330 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: 2631
  • 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 !!!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus