Subexpression automation in strings

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
Post Reply
User avatar
Lembasts
Posts: 147
Joined: Thu Mar 15, 2012 9:47 am

Subexpression automation in strings

Post by Lembasts » Sun Jun 04, 2017 3:20 pm

Greetings,

I am often copying and pasting object properties into strings.
So I might start with "User []" and then paste in the property which becomes "User [$textboxUser.Tag.Name]" but then I have to manually change this to "User [$($textboxUser.Tag.Name)]".
It would be nice to just highlight the variable and press a shortcut key to enclose the variable in a subexpression.
What would be even way cooler is detecting that an object with a property has been pasted in to a string and automatically do the following:
If the string is enclosed in single quotes, automatically change it to double quotes AND automatically apply the subexpression.

Cheers
David

User avatar
davidc
Posts: 4752
Joined: Thu Aug 18, 2011 4:56 am

Re: Subexpression automation in strings

Post by davidc » Mon Jun 05, 2017 8:05 am

Hello David,

You can wrap the command in parenthesis using the following command (but does not include the $):

[Ctrl + Shift + 9]

I will see if we can add a new command to wrap the selection in subexpression $().

For the other wrap commands, please refer to the following article:

https://www.sapien.com/blog/2015/07/15/ ... 5-support/

To toggle string quotes, use the following command:

[Ctrl+Alt+']

Thank you for your feedback!
David
SAPIEN Technologies, Inc.

User avatar
davidc
Posts: 4752
Joined: Thu Aug 18, 2011 4:56 am

Re: Subexpression automation in strings

Post by davidc » Tue Jun 27, 2017 11:19 am

We added the command in the latest service release (v5.4.141):

https://www.sapien.com/blog/2017/06/27/ ... -v5-4-141/
David
SAPIEN Technologies, Inc.

User avatar
Lembasts
Posts: 147
Joined: Thu Mar 15, 2012 9:47 am

Re: Subexpression automation in strings

Post by Lembasts » Sun Jul 02, 2017 3:30 pm

Thanks! 8-)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests