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
 Feature Requests
 Auto-correction bug!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Dec 13 2007 :  05:27:30 AM  Show Profile  Reply with Quote
VS 2008, VAX 2316.

CString argUpper;
if (argUpper.Find( "/V" ) == 0 )
{
}


I select "Find" and type the following: Left(2)
When I have typed the last parenthesis, "Left(2)" is replaced with "Left(Left)". Really strange!

feline
Whole Tomato Software

United Kingdom
18947 Posts

Posted - Dec 13 2007 :  3:22:13 PM  Show Profile  Reply with Quote
Not for me, I have just tried this, and I ended up with:

static void testTypingLeft()
{
	CString argUpper;
	if (argUpper.Left(2)|( "/V" ) == 0 )
	{
	}
}

Is this file / context specific?

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

znakeeye
Tomato Guru

379 Posts

Posted - Dec 13 2007 :  3:38:28 PM  Show Profile  Reply with Quote
Actually it was an "else if" inside CMyClass::Foo(int x){} if that matters?

I'll make a sample if you can't reproduce it.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18947 Posts

Posted - Dec 14 2007 :  09:30:36 AM  Show Profile  Reply with Quote
A sample is starting to sound useful using VS2005 and VA 1624 I have just added the following code:

class CMyClass
{
	void Foo(int x);
};

void CMyClass::Foo(int x)
{
	CString argUpper;
	if (argUpper.Find( "/V" ) == 0 )
	{
	}
}

to a C++ header file, and when I select and over type "Find" everything works correctly for me.

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