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
 Comments behaviour
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Piccinano
New Member

3 Posts

Posted - Dec 07 2005 :  08:54:09 AM  Show Profile
Hi,

I updated to 10.2.1434.0 from Visual Assist X 10.1.1418.0 and now I observe a different behaviour when i put and remove comments by '//' button.

Example, i have this code:

if (m_bConClose == TRUE)
{

int ret = MessageBox ("Do you confirm exit?", "FTP CLIENT",MB_YESNO | MB_ICONQUESTION);

// CString testo;
// testo.Format(" %d",ret);
// MessageBox (testo, "FTP CLIENT - Confirm",MB_YESNO | MB_ICONQUESTION);
// return;

if (ret== IDNO) // 7 == IDNO 6 == IDYES
return;
}

If I select all code and then press the '//' button, to insert comments, Visual Assist insert the // and i get this:

// if (m_bConClose == TRUE)
// {
//
// int ret = MessageBox ("Do you confirm exit?", "FTP CLIENT",MB_YESNO | MB_ICONQUESTION);
//
// // CString testo;
// // testo.Format(" %d",ret);
// // MessageBox (testo, "FTP CLIENT - Confirm",MB_YESNO | MB_ICONQUESTION);
// // return;
//
// if (ret== IDNO) // 7 == IDNO 6 == IDYES
// return;
// }

If I press again the '//' button to remove the inserted comments, I get this:

if (m_bConClose == TRUE)
{

int ret = MessageBox ("Do you confirm exit?", "FTP CLIENT",MB_YESNO | MB_ICONQUESTION);

CString testo;
testo.Format(" %d",ret);
MessageBox (testo, "FTP CLIENT - Confirm",MB_YESNO | MB_ICONQUESTION);
return;

if (ret== IDNO) // 7 == IDNO 6 == IDYES
return;
}

Visual Assist removed *all* the // also the previus comments.

The old versions have not this behaviour.

Best regards.

Piccinano.

support
Whole Tomato Software

5566 Posts

Posted - Dec 08 2005 :  8:47:01 PM  Show Profile
We can reproduce the problem and expect a fix in the next build.

case=917
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 08 2005 :  9:16:22 PM  Show Profile
Problem occurs only when existing // begins in column one.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 09 2005 :  1:55:20 PM  Show Profile
Fixed in 1435.
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