Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 C# string constant with colon shows dot only

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
SvenC Posted - Oct 16 2012 : 02:37:05 AM
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
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 17 2012 : 8:30:31 PM
Thank you for the update, its good to know this is all that is going on for you, and not something else as well.
SvenC Posted - Oct 17 2012 : 12:16:16 PM
Good findings. I see the same dependence on leading and trailing space.
feline Posted - Oct 17 2012 : 12:02:08 PM
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.
SvenC Posted - Oct 17 2012 : 03:06:59 AM
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.
feline Posted - Oct 16 2012 : 2:14:36 PM
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.

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