How can we help you today? How can we help you today?

$SELECTEDTEXT$ only expands once

Using 7.0.0.40

setup a new snippet


sum ( $SELECTEDTEXT$ ) as tot_$SELECTEDTEXT$

when it expands the $SELECTEDTEXT$ only expands the second time it appears

Example result

sum ( $SELECTEDTEXT$ ) as tot_Current_db
eklein
0

Comments

3 comments

  • Aaron L
    Thanks for your post,

    The current implementation of $SELECTEDTEXT$ only expands once per a line, I think your snippet is a good example of why we would want to expand it more than this though! I'll have a look into removing this restriction and should have a new build for you later today.

    Thanks,
    Aaron.
    Aaron L
    0
  • Aaron L
    We've just released a new build of Prompt (7.0.0.41) which should allow you to use multiple $SELECTEDTEXT$ placeholders on a single line. You can download the latest build from our website or through the check for updates dialog inside Prompt. Please let me know if this works as you'd expect.

    Thanks,
    Aaron.
    Aaron L
    0
  • eklein
    I've tried it and it now works as I had anticipated.

    Thanks for you quick response
    eklein
    0

Add comment

Please sign in to leave a comment.