I created an additional small window for searches. When window opens fields are presented in search mode. Works very well.
After clicking on search button [=script], results are presented in second additional window. The script executes the search and leads to new window.
As last step of script I would like to close the first search window. And that does not work. In included line close window based on name of window, but no result. When line is inserted direct after search, window does close, but search result is lost and all records are shown.
Where to include command for closing window?