Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread EWB 2.04 issue
Tue, Dec 29 2015 5:07 PMPermanent Link

Trinione

I am not seeing anything listed as a 'Breaking Change', however the following code no longer works.

//////
function Tfrm1.fldNameSetText(Sender: TObject; const Value: String): String;
begin
 Value := '$' + FloatToStr(StrToFloat(Value));
 result := Value;
end;
//////
--> Error Message:  'A value cannot be assigned to Value' <--
Tue, Dec 29 2015 6:08 PMPermanent Link

MarkB

Trinione wrote:

I am not seeing anything listed as a 'Breaking Change', however the following code no longer works.

//////
function Tfrm1.fldNameSetText(Sender: TObject; const Value: String): String;
begin
 Value := '$' + FloatToStr(StrToFloat(Value));
 result := Value;
end;
//////
--> Error Message:  'A value cannot be assigned to Value' <--

What if you change the routine to

 Result := '$' + FloatToStr(StrToFloat(Value));

Normally a const Value shouldn't be allowed to be modified.
Tue, Dec 29 2015 6:45 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 12/29/2015 5:07 PM, Trinione wrote:
> I am not seeing anything listed as a 'Breaking Change', however the following code no longer works.
> function Tfrm1.fldNameSetText(Sender: TObject; const Value: String): String;
> begin
>    Value := '$' + FloatToStr(StrToFloat(Value));
>    result := Value;
> end;
> //////
> --> Error Message:  'A value cannot be assigned to Value' <--

This is not a breaking change - it was a bug in earlier 2.x that is now
fixed.

See this for background:

http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=8500#8500

Raul
Tue, Dec 29 2015 7:48 PMPermanent Link

Trinione

<< http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=8500#8500 >>


Thank you Raul.

I guess Tim got around to fixing this some more cause it was working with 2.03
Wed, Dec 30 2015 8:18 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


As already mentioned, this was a bug fix.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Dec 30 2015 9:09 AMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 12/29/2015 7:48 PM, Trinione wrote:
> I guess Tim got around to fixing this some more cause it was working with 2.03

I've upgraded to 2.04 so can't test 2.03 anymore but as per incident it
is fixed in 2.04 only (and was reported with 2.03 b1):

http://www.elevatesoft.com/incident?action=viewaddr&category=ewb&release=2.04&incident=4320


Raul
Image