<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">The command Edit.Store shows how this can be done:</pre><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""><br class=""></pre><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""><span style="color: rgb(51, 51, 51); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;" class="">V </span><span class="pl-smi" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;">:=</span><span style="color: rgb(51, 51, 51); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;" class=""> Oberon</span><span class="pl-smi" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;">.</span><span style="color: rgb(51, 51, 51); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;" class="">MarkedViewer</span><span class="pl-smi" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;">();</span></pre><pre style="background-color: rgb(255, 255, 255);" class=""><span class="pl-smi" style="box-sizing: border-box;"><font color="#333333" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class="">Texts.OpenScanner(S, V.dsc(TextFrames.Frame).text, 0);</font></span></pre><pre style="background-color: rgb(255, 255, 255);" class=""><span class="pl-smi" style="box-sizing: border-box;"><font color="#333333" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><br class=""></font></span></pre><pre style="background-color: rgb(255, 255, 255);" class="">...</pre><pre style="background-color: rgb(255, 255, 255);" class="">—————————</pre><div class=""><div class=""><br class=""></div><div class=""><br class=""></div></div><div class=""><h1 style="font-family: -webkit-standard; background-color: rgb(255, 255, 255);" class="">[Oberon] Obtaining the title of a marked viewer.</h1><b style="font-family: -webkit-standard; background-color: rgb(255, 255, 255);" class="">peter at <a href="http://easthope.ca" class="">easthope.ca</a></b><span style="font-family: -webkit-standard; font-size: medium; background-color: rgb(255, 255, 255);" class=""> </span><a href="mailto:oberon%40lists.inf.ethz.ch?Subject=Re:%20Re%3A%20%5BOberon%5D%20%20Obtaining%20the%20title%20of%20a%20marked%20viewer.&In-Reply-To=%3CE1cf9Ah-0004Td-7f%40dalton.invalid%3E" title="[Oberon] Obtaining the title of a marked viewer." style="font-family: -webkit-standard; background-color: rgb(255, 255, 255);" class="">peter at easthope.ca </a><br style="font-family: -webkit-standard; background-color: rgb(255, 255, 255);" class=""><i style="font-family: -webkit-standard; background-color: rgb(255, 255, 255);" class="">Sat Feb 18 18:51:47 CET 2017</i><hr style="font-family: -webkit-standard; background-color: rgb(255, 255, 255);" class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">Suppose a Text viewer is * marked. Oberon.MarkedText() gives the
Text, a pointer to a TextDesc.
How can the title of the viewer be obtained? Hypothetically a message
broadcast into the Display can induce the viewer to identify itself.
Is there an example in documentation or source?
Why ask the question? If "Sort.Sort *" is applied to a Text, the
result is placed in a viewer named Sorted.Text. More helpful is to
take the title of the original Text, append a suffix such as ".Srt",
and give the name to the result viewer.
Thanks, ... Lyall E.
--
</pre></div><div class=""><br class=""></div></body></html>