Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread small bug with variants
Sat, Mar 28 2020 10:09 AMPermanent Link

erickengelke

Avatar

I declared a structure:

type.
 X = class (Tobject )
 public
    y : variant;
 end;

and the resulting Javascript said something iike

 var ...X_y = ;

It didn't say y= null; so tjhe javascript failed to load.

I fixed the code by declaring y : TExternalObject, but thought you would want to know.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Tue, Apr 7 2020 11:52 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<< and the resulting Javascript said something iike

 var ...X_y = ;

It didn't say y= null; so tjhe javascript failed to load. >>

This is fixed for build 8.

Just to note: the TExternalObject class is in a completely different class hierarchy from the TObject base class, so the two are not equivalent.

Thanks !

Tim Young
Elevate Software
www.elevatesoft.com
Image