debugger: show Variant and ShortString type as simple value instead of record

git-svn-id: trunk@22991 -
This commit is contained in:
paul 2009-12-06 06:19:18 +00:00
parent dc5c58c871
commit bd0aefe8b1

View File

@ -127,7 +127,17 @@ begin
if not Assigned(FDBGInfo.Fields) then exit;
EditInspected.Text:=FExpression+' : '+FDBGInfo.TypeName;
GridDataSetup;
ShowDataFields;
// handle special records
if (FDBGInfo.TypeName = 'VARIANT') or
(FDBGInfo.TypeName = 'Variant') or
(FDBGInfo.TypeName = 'ShortString') then
begin
FGridData.Cells[0,1]:=FExpression;
FGridData.Cells[1,1]:=FDBGInfo.TypeName;
FGridData.Cells[2,1]:=FHumanReadable;
end
else
ShowDataFields;
FGridData.AutoSizeColumn(2);
end;