Actually I found this out recently myself, it's a really handy feature. And remember that juststem() can be used to find the name of teh editor window.
lcFile='c:\yourpath\yoursubpath\yourfile.txt'
lcWindow=juststem(lcFile)
modi file (lcFile) nowait
Release Windows (lcWindow)
>thanks tore - that is a revelation!!! another mystery unveiled.
>
>k
>
>>Your editor window will normally be given the same name as the file you modify, minus the extension. So you can do "anything" with it.
>>
>>Move Window m To 10,10
>>Release window m
>>>I have created a text file - open the text file and offer menu asking what to do with the report.
>>>after the user makes the selection i would like to close specifically the window that displays the text
>>>i can do this by close all but that closes up the complete shop - is there a code i can use to simply close the text window
>>>(I can create a tempwindow - activate a deactivate it and deal with it this way - but am curious about this specific text window control)
>>>
>>>thanks
>>>k
>>>
>>>CLOSE ALTERNATE
>>>modi file m.txt nowait
>>>do whatdo
>>>*** close the text window???
>>>