Topic: how to save the contents of a memo object to a text file
how to save the contents of a memo object to a text file?
My Visual Database → General → how to save the contents of a memo object to a text file
how to save the contents of a memo object to a text file?
Hi,
At its most simple, you can use
form1.memo1.SaveToFileUTF8('myfile.txt');
You can enhance this, if required to prompt for file names and file paths etc.
To give it a bit of context, in some projects I give the users the facility to create their own help file; in the attachment, when you click 'HELP', it opens 'formhelp' and loads a text file which can be edited. When you close 'formhelp', it saves the text file..
You can do the same thing with .rtf files although the syntax in the script is slightly different.
Derek.
thanks a lot derek
My Visual Database → General → how to save the contents of a memo object to a text file
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi