Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Structure Pane    [ Add a report in this area ]  
Report #:  84694   Status: Open
Structure panel
Project:  Delphi Build #:  12.0.3420.21218
Version:    14.0 Submitted By:   Robert Small
Report Type:  Basic functionality failure Date Reported:  5/17/2010 5:23:05 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   276635
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If a record is declared with an "in line" declared record, the Stucture Panel will not show any of the following types.

Also, if the code for TRecordData is collapsed, it will only collapse up to the "end;" indicated.

Code compiles and runs OK.

Effects both D2009 and 2010

See also #74767 and #74554

Steps to Reproduce:
type
  TRecordData = record
    a : integer;
    b : record
          Status : boolean;
          Message : string;
        end;
    x : string;
  end;
  TMyClass = class(Tobject)
    private
      a : integer;
      b : TRecordData;
  end;
Workarounds
Declare an additional record

type
  TSubRecord = record
    Status : boolean;
    Message : string;
  end;
  TRecordData = record
    a : integer;
    b : TSubRecord;
    x : string;
  end;
  TMyClass = class(Tobject)
    private
      a : integer;
      b : TRecordData;
  end;
Attachment
None
Comments

None

Server Response from: ETNACODE01