AppGetNames, AppGetNames()

Syntax

AppGetNames ArrayVariable$()

AppGetNames(ArrayVariable$())

Remarks

The AppGetNames statement fills a previously defined string array with the names of open application windows (including hidden application windows that do not appear in the Task List (Windows) or on the Application menu (Macintosh)). If ArrayVariable$() has fewer elements than the number of open applications, the array is filled with as many names as there are elements, and an error does not occur.

The AppGetNames() function carries out the same action and also returns the number of open application windows (including hidden application windows that do not appear in the Task List (Windows) or on the Application menu (Macintosh)). AppGetNames() returns the same value as AppCount().

Example

This example inserts a list of application window names at the insertion point:


size = AppCount() - 1
Dim winnames$(size)
AppGetNames winnames$()
For i = 0 To size
    Insert winnames$(i)
    InsertPara
Next

See Also

AppActivate, AppClose, AppCount(), AppIsRunning()