Watch, Follow, &
Connect with Us
Public Report
Report From: EDN    [ Add a report in this area ]  
Report #:  139331   Status: Reported
Same bug with '(' never gets fixed OMG
Project:  EDN Build #:  C++ Builder Upd
Version:    2 Submitted By:   Doug Hay
Report Type:  Minor failure / Design problem Date Reported:  11/21/2016 9:06:48 PM
Severity:    Commonly encountered problem Last Updated:
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
This is super annoying and I upgraded to Update 2 because it is supposed to fix these things.

Typing a '(' inside a highlighted block causes the entire block to become indented and adds parentheses that makes the code invalid.
Steps to Reproduce:
Put this code in the editor

   if (Exists == false)
      RunSQL = true;

Now select both lines, they have to be selected for the bug to occur.

Now change the text to look like this

   if (Exists() == false)
      RunSQL = true;

As soon as you add the '(', you have this

(   if (Exists == false)
      RunSQL = true;
      )

It gets WAY worse the more code you have selected.

For example

   for (int x = 0; x < IndexCount; x++)
   {
      IndexArray[x] = TableEntries->AdsGetIndexName(ahIndexHandles[x]);

      AnsiString s = IndexArray[x].UpperCase();

      if (s == uIndexName)
      {
         Found = true;
         break;
      }
   }

Now add a '(' after the "AnsiString s = " so it looks like "AnsiString s() = " (this is just an example, don't tell me the code doesn't make sense)

Then this is what you get

(   for (int x = 0; x < IndexCount; x++)
   {
         IndexArray[x] = TableEntries->AdsGetIndexName(ahIndexHandles[x]);

               AnsiString s = IndexArray[x].UpperCase();

                     if (s == uIndexName)
                           {
                                    Found = true;
                                             break;
                                                   }
                                                      }
                                                      )





Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01