Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Faulty closing braces in string

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
gencha Posted - Jul 11 2009 : 4:27:32 PM
Given the following line:
Regex PriceClean = new Regex( @"(\\d{1,6},(\\d{2}|-)" );

If I place the cursor after the - in the regular expression and type the additional ) which is missing, VAX will jump over the existing one instead of adding an additional one.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jul 12 2009 : 7:41:40 PM
This is because Visual Assist puts closing parentheses automatically: you type (| and get (|) where | represents the caret. After that typing Apple+Banana)| will result in (Apple+Banana)| instead of (Apple+Banana)|). So Visual Assist overwrites the ) to avoid unnecessary closing parentheses. So it tries to figure out what to do, but this isn't always unambiguous.

You can turn off

VA Options -> Advanced -> Corrections -> Insert () and closing })]'"

as a workaround if overwriting ) bothers you.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000