GETWINNAME

Purpose:

Returns the symbolic Window or numeric Window name.

Syntax:

GETWINNAME(win, "name")

win

-

Optional. The source Window, defaults to the current Window.

"name"

-

Optional. A string, the symbolic Window name in quotes if requesting the corresponding numeric name.

Returns:

A string, the symbolic or numeric name of the Window.

Example:

winname(W1, "Pressure");

s_name = getwinname(w1);

n_name = getwinname("Pressure");

 

The variable s_same contains the symbolic name "Pressure" and n_name contains the numeric name "W1".

Remarks:

If a Window does not have a symbolic name, the numeric name is returned.

 

If requesting the numeric name from an unknown symbolic name, an empty string is returned.

 

See SHOWWINNAME to display or hide all Window names in the Worksheet.

 

See GETWNUM to return the integer Window number.

See Also:

GETWNUM

SHOWWINNAME

WINNAME