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
 C# string constant with colon shows dot only
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SvenC
Tomato Guru

Germany
339 Posts

Posted - Oct 16 2012 :  02:37:05 AM  Show Profile  Reply with Quote
With this C# sample code in VS 2012:

class Program
{
private static string StringWithColon = ":";

static void Main(string[] args)
{
string s = StringWithColon;
}
}

When I put the cursor on StringWithColon the VAX definition drop down combo above the code window on the right side does show this text: private static string StringWithColon = "."

See that the wrong "." is shown instead of the correct ":"

VAX version 10.7.1916.0 built 2012.09.11
DevEnv.exe version 11.0.50727.1 Ultimate
msenv.dll version 11.0.50727.1
Comctl32.dll version 6.10.7601.17514
Windows 7 6.1 Build 7601 Service Pack 1
Language info: 1252, 0x407

--
SvenC

feline
Whole Tomato Software

United Kingdom
19187 Posts

Posted - Oct 16 2012 :  2:14:36 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=69991

If the colon is part of a longer string then it is being displayed correctly for me, which is something.

zen is the art of being at one with the two'ness
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Oct 17 2012 :  03:06:59 AM  Show Profile  Reply with Quote
Thanks for the repro.
But Strange - how long is your string that it displays the colon as colon?

I can add as many characters in that string until the definition bar truncates the string, but all the time the colon is displayed as a dot, no matter if in the middle or at the end of the string.

Anyways, that bug is not so critical.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19187 Posts

Posted - Oct 17 2012 :  12:02:08 PM  Show Profile  Reply with Quote
This is an odd difference. This is the test code I used, and the comments explain what I am seeing:

class test_cs_string_with_colon
{
    void testCSStringDisplay()
    {
        // bug - definition field shows the colon as a dot for each of these variables
        string StringWithColon = ":";
        string StringWithColonLeadingSpace = " :";
        string StringWithColonTrailingSpace = ": ";
        // test - definition field shows the colon correctly for each of these variables
        string StringWithColonWithSpaces = " : ";
        string StringWithColonAndNames = "Colin : Fred";
    }
}


Can you try this test code on your system please, and see if you get the same results? There could be a second factor at work here I have not yet found.

zen is the art of being at one with the two'ness
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Oct 17 2012 :  12:16:16 PM  Show Profile  Reply with Quote
Good findings. I see the same dependence on leading and trailing space.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19187 Posts

Posted - Oct 17 2012 :  8:30:31 PM  Show Profile  Reply with Quote
Thank you for the update, its good to know this is all that is going on for you, and not something else as well.

zen is the art of being at one with the two'ness
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