Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Refactoring/Change Parameters    [ Add a report in this area ]  
Report #:  47899   Status: Open
Default value for an existing parameter not shown when change parameters dialog appears.
Project:  Delphi Build #:  11.0.2709.7128
Version:    11.0 Submitted By:   Sheree Ervin
Report Type:  Basic functionality failure Date Reported:  6/21/2007 12:46:07 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   251623
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 you bring up the Change parameters dialog on  a procedure that contains a paramerter with a default value, the Literal Value is not shown in the column as expected.
Steps to Reproduce:
+ Copy the following:

type
desc2 = class(TOBject)
function Add(const AText: string = ''): tobject;
end;

implementation

function desc2.Add(const AText: string ='' ): tobject;
begin
end;

end.

+  Right click on Add procedure
+ Click Refactoring | Change Params
+ Examind dialog
//exp: default value should show up in Literal Value
//act: Literal Value column is empty.
Workarounds
None
Attachment
None
Comments

Sheree Ervin at 6/21/2007 12:46:34 PM -
Made a separate bug from 47744

Server Response from: ETNACODE01