Does anyone know of a way with JSL to get the text and the line number(s) of selected text in a Script Box with JSL? E.g.
I want to return "Text 1 , " and {3,4}
I think you can do it (in basic cases) with combination of (note that cursor line starts from 0 and selection width can be negative)
<< Get Cursor Line; << Get Cursor Position; << Get Selection Width; << Get Line Text; << Get Lines;
Thanks. Alas, this is only in JMP 19 and I only have JMP 18.
Yeah, JMP18 is more limited. When I created add-in for JSL Snippets (was "long" before JMP19 released) I had to use workaround in which I inputted specific string into the script box and then I would look for it and replace it with the snippet.