SaveDocument

Description

Saves the contents of a RichTextEdit control in a file. You can specify either rich-text format (RTF) or ASCII text format for the file.

Applies to

RichTextEdit controls

Syntax

rtename.SaveDocument ( filename {, filetype } )

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs.