Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Refactor->Extract method still looses chars
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hajokirchhoff
Ketchup Master

Germany
58 Posts

Posted - Feb 09 2009 :  12:59:18 PM  Show Profile  Reply with Quote
Build 1711, VisualStudio 2008, Extract method still looses chars (in strings).

Extract this code snippet

m_connection.execute(
L"-CREATE TABLE jobs ( id $$IDENTITY PRIMARY KEY, title varchar(32), comment text, starttime DATETIME,"
L" operator_name varchar(128), station_name varchar(128), longitude integer, longitude_min integer, longitude_sec integer, longitude_orientation integer,"
L" latitude integer, latitude_min integer, latitude_sec integer, latitude_orientation integer,"
L" duration_minutes integer, storage_interval_seconds integer, signal_detection_threshold_fixed real, signal_detection_threshold_nrt real"
L");");

to a method and the result is
m_connection.execute(
L"-CREATE TABLE jobs ( id $IDENTITY PRIMARY KEY, title varchar(32), comment text, starttime DATETIME,"
[snip]

The '$$IDENTITY' inside the wide-char string looses one '$' sign.

Regards

Hajo

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 09 2009 :  5:57:37 PM  Show Profile  Reply with Quote
Is this C#?
Go to Top of Page

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Feb 10 2009 :  12:12:37 AM  Show Profile  Reply with Quote
The string concatenation and L prefix are indicative of C++.

This is readily reproducible, and appears to be caused by the VA Snippet engine intercepting the literal text as if it were part of the Refactor Extract Method VA Snippet, which controls the formatting of the extracted method.

case=23814

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 08 2010 :  04:16:53 AM  Show Profile  Reply with Quote
case=23814 was marked as a duplicate of case=19247
case=19247 is fixed in build 1814

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000