mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 16:49:28 +02:00
DBG: Improve display of dyn array
git-svn-id: trunk@37903 -
This commit is contained in:
parent
04f164cbf4
commit
ee1253c86f
@ -2584,14 +2584,15 @@ var
|
||||
FExprEvaluatedAsText := '';
|
||||
for i := 0 to Length(FArrayIndexValues) - 1 do begin
|
||||
s := FArrayIndexValues[i].ExprEvaluatedAsText;
|
||||
if (pos(' ', s) > 0) or (pos(',', s) > 0) then
|
||||
s := '('+s+')';
|
||||
if (pos(',', s) > 0) and not(s[1] in ['(', '[', '{', '"', '''', '#']) then
|
||||
s := '{'+s+'}';
|
||||
if i > 0 then
|
||||
FExprEvaluatedAsText := FExprEvaluatedAsText + ', ';
|
||||
FExprEvaluatedAsText := FExprEvaluatedAsText + s;
|
||||
end;
|
||||
if Length(FArrayIndexValues) < FLen then
|
||||
FExprEvaluatedAsText := FExprEvaluatedAsText + ', ...';
|
||||
FExprEvaluatedAsText := '(' + FExprEvaluatedAsText + ')';
|
||||
|
||||
FHasExprEvaluatedAsText := True;
|
||||
Result := True;
|
||||
|
Loading…
Reference in New Issue
Block a user