[Lazarus] Ok I give up!

Michael Van Canneyt michael at freepascal.org
Sat Mar 2 13:20:51 CET 2013



On Sat, 2 Mar 2013, appjaws wrote:

> Hi,
> How do you write the contents of a Memo to a file and read back into a Memo?
> I have tried all sorts, I am using Lazarus 1.0.6 on linux.

Simple:

Memo1.Lines.SaveToFile('/home/yourname/yourfile.txt');

And

Memo1.Lines.LoadFromFile('/home/yourname/yourfile.txt');


> How this started was because I wanted to write the content of my Memo to the 
> clipboard and be able to paste it back in again, but I couldn't figure out 
> how to do this in the linux version.
> Another thing how can I find out legal qualifiers i.e. Memo.Clear , Memo.Text 
> (both illegal). What is legal?

Again, simple:

1. use code completion. Type
Memo.
Normally, if you wait ater typing the dot, the list of available qualifiers 
will appear by itself after some time.

2. At least the published qualifiers are visible in the Object Inspector. 
They are accessible in code with exactly the same names.

Michael.




More information about the Lazarus mailing list