From: js8765 on
Hi there,

Is there any function that returns the name of the file currently open
in the Enhanced Editor window?

For anyone who's interested, what I'm trying to do is have a toolbar
button that will modify the currently open file depending on its content.

My idea was to do the following steps:
1. save the currently open file
2. read the saved file using an INFILE statement and carry out some
modifications to it depending on the content.
3. save the modified version and reload it into the Enhanced Editor

Therefore I would need the name of the file for the step 2.

Maybe there is a neater way of doing this. All suggestions are welcome!

Thanks in advance for any info!

js