On 02/03/13 12:16, Reinier Olislagers wrote:
On 2-3-2013 13:05, appjaws wrote:
Hi,
How do you write the contents of a Memo to a file and read back into a
Memo?
Memo1.Lines.SaveToFile
Memo1.Lines.LoadFromFile

I tried the following line but I just get an error message :-
Call.pas(87,17) Error: Illegal qualifier

MemoCallNote.Lines.SaveToFile ('/home/paul/tmpinfo/MyTempFile.txt');


Another thing how can I find out legal qualifiers i.e. Memo.Clear ,
Memo.Text (both illegal). What is legal?
Type Memo. then press ctrl-space, then identifier completion will show
you legal qualifiers.

I didn't fine .Lines.SaveToFile?


You can also go to the declaration of the tmemo (using alt-up) and see
the source code to inspect the properties/methods/functions but as
you'll see TMemo descends from TCustomMemo, probably inheriting some
properties etc, and the inheritance tree goes on up.

Finally, built in help is a nice aid: with your cursor on TMemo, press
F1 and you'll see properties and methods that are available.

I don't think my built in help is working, F1 does nothing.
How do I enable built in help?

Thank you to all who responded
Paul

--
---This message has been sent using Thunderbird on kubuntu---

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to