AutoPlay Media Studio 9

RichText.SaveToFile

RichText.SaveToFile

This is the first topic This is the last topic  

RichText.SaveToFile

This is the first topic This is the last topic  

OverviewExamples

RichText.SaveToFile (

string ObjectName,

string Filename )

Example 1

-- Saves the modified license text document.

RichText.SaveToFile("RichText1", Shell.GetFolder(SHF_MYDOCUMENTS).."\\License.rtf");

 

-- Test for error

error = Application.GetLastError();

if (error ~= 0) then

   Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION);

end

Saves the text in the "RichText1" richtext object to an RTF file called "License.rtf" in the 'My Documents' folder.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us