txtITextEditor GetTextFileName

Returns the name of the text file.

Syntax

txtITextEditor_handle GetTextFileName

Application

HyperWorks Tcl Query

Description

This command returns the name of the text file as a filepath, if the file has a name. If there is no file in the text editor, then nothing is returned. There may be text in the text editor that has not been saved as a file and therefore, would not have a filename.

Example

hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle txt;
txt GetTextFileName;

Errors

Success (the filename [or nothing]) or an error message is returned.

Keywords

HyperWorks

Tcl

TextView

Query