[Pas2js] How to access a private field (avoiding JS)?

silvioprog silvioprog at gmail.com
Sat Jan 12 03:00:12 CET 2019


On Fri, Jan 11, 2019 at 6:38 PM Mattias Gaertner via Pas2js <
pas2js at lists.freepascal.org> wrote:
[...]

> For example:
> TJSObject(Result)['FOwner']:=AOwner;
>
> Mattias
>

OMG, so simple. 😮 I didn't know that Properties[] could access private
fields. I need to dedicate some time to read the entire pas2js
documentation.

Thank you very much Mattias!

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190111/4fa12041/attachment.html>


More information about the Pas2js mailing list