Get Window Title - template

You could also have an APPLICATION i.e. Frame. You probably would not use your code template there, but for completeness something like this:

 #Declare(%MyMdiWindowTitle)
 #IF (EXTRACT(%WindowStatement, 'APPLICATION'))
    #Set(%MyMdiWindowTitle,EXTRACT(%WindowStatement,'APPLICATION',0))
 #ELSE
    #Set(%MyMdiWindowTitle,EXTRACT(%WindowStatement,'WINDOW',0))
 #ENDIF
2 Likes