Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Property Expressions
Thu, Oct 13 2016 1:07 PMPermanent Link

Trinione

Tim:
I was some research on property expressions and am wondering if they shall be part of EWB's OP in the future?


For example, writing:
   property Detail: string read (lblDet.Caption) write (lblDet.Caption);

is an incredible time and code saver, over:

type
 TToDoList=class(Tfrm1)
 private
   function GetDetail: string;
   function GetTask: string;
   procedure SetDetail(value: string);
   procedure SetTask(value: string);
 public
   property Task: string read GetTask write SetTask;
   property Detail: string read GetDetail write SetDetail;
 end;
Fri, Oct 14 2016 2:29 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<, I was some research on property expressions and am wondering if they shall be part of EWB's OP in the future? >>

Which OP implementation has those ?

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Oct 15 2016 7:21 AMPermanent Link

Trinione

<< Which OP implementation has those ? >>

Tim:
Here it is: http://bit.ly/2ehZOJd
Mon, Oct 17 2016 1:22 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Here it is: http://bit.ly/2ehZOJd >>

Interesting.  I considered something like that for EWB, but the problem is that it can result in a *larger* emitted JS application, and that isn't good for EWB.  It's preferential with JS applications to keep any complexity hidden within functions because that arrangement compresses a lot better than in-lining code.

Tim Young
Elevate Software
www.elevatesoft.com
Image