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
 Random code completion
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ravensOrb
Tomato Guru

136 Posts

Posted - Mar 02 2004 :  9:22:35 PM  Show Profile
Ok, here is something alittle on the odd site. Create a class with 2 property and 2 methods. Now instantiate that class in your code, but type in the name of a property that does NOT exist in the class and hit "tab". Whatever property you typed will be replaced by one of the two that are actually defined in the class.

Note: This is in C#

Example
public class CFoo
{
public CFoo()
{
}

public string FileName
{
get { return m_sFileName; }
set { m_sFileName = value; }
}

public string FileSpec
{
get { return m_sFileSpec; }
set { m_sFileSpec = value; }
}

public void Execute()
{
}
}

public class CBar
{
public CBar()
{
CFoo foo = new CFoo();

foo.SomeProperty<tab> <-- at this point SomeProperty will be replaced by FileName or FileSpec


EnderJSC
New Member

8 Posts

Posted - Mar 02 2004 :  11:19:23 PM  Show Profile
I have also seen this happen in C++. I don't have any specific examples though.

EnderJSC
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 03 2004 :  11:11:50 AM  Show Profile
Fixed in build 1219.

Whole Tomato Software, Inc.

Edited by - support on Mar 04 2004 11:56:41 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000