Whole Tomato Software Support Forum
Whole Tomato Software Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist X
 General Release
 Refactor->Extract method still looses chars

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an Image

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hajokirchhoff Posted - Feb 09 2009 : 12:59:18 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
support Posted - Mar 08 2010 : 04:16:53 AM
case=23814 was marked as a duplicate of case=19247
case=19247 is fixed in build 1814
kevinsikes Posted - Feb 10 2009 : 12:12:37 AM
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
accord Posted - Feb 09 2009 : 5:57:37 PM
Is this C#?

Whole Tomato Software Support Forum © 2010 Whole Tomato Software, Inc Go To Top Of Page
Snitz Forums 2000