Function to Return Selected Text

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jun 2, 2008
284
1
Newton, MA
#1
Is there any function/variable that will return the text that has been
selected in the TCMD tab window?

I was thinking of making a TCMD button that would do something with the
text I had selected, such as building a command line to submit. For
example, one might select a displayed file name and then click an "edit"
button to create the command line "edit <selected text>".

-- Jay
 
#2
Is there any function/variable that will return the text that has been
selected in the TCMD tab window?

I was thinking of making a TCMD button that would do something with the
text I had selected, such as building a command line to submit. For
example, one might select a displayed file name and then click an "edit"
button to create the command line "edit <selected text="">".

-- Jay
Will the internal variable _SELECTED do what you want?

Joe

</selected>
 
Jun 2, 2008
284
1
Newton, MA
#3
On 1/7/2011 6:52 AM, Joe Caverly wrote:

> Will the internal variable _SELECTED do what you want?
That's it! Thank you. The button I wanted to create is now working.

I was looking for it in the help section on "Screen, color, and cursor"
variables, but it's listed under "TCC status" variables. Rex, it might
make sense to list it also where I was looking, since it does have
something to do with the screen.

-- Jay