TextDocument.Show

Syntax:

Show(<Title>, <FileName>)

Parameters:

<Title> (optional)

Type: String.
Edit window caption.

<FileName> (optional)

Type: String.
The name of the file to which the user will be prompted to save text when text editor window is closed. If a file with the specified name does not exist, a new file with this name will be created to save the text.
If this parameter is not specified, the user is not prompted to save the document when the window is closed.
If this parameter is not specified, but changes were been made in the edit window after executing the Show method (interactively or using script features), on exit the system will ask whether you want to save the document.

Description:

Opens the text window for viewing and editing.
The Show method call will activate an exception if the text document is an attribute of a managed form.

Availability:

Thin client, web-client, thick client.

Example:

DocText.Show("Editing the price list", "catalog.txt");

    

1C:Enterprise Developer's Community