[Pas2js] Enum as an const
Henrique Gottardi Werlang
henriquewerlang at hotmail.com
Fri Jun 23 19:54:53 CEST 2023
It possible to convert an enumerator in a const string?
For example I declare a enumerator:
TMyEnumerator = (MyEnum1, MyEnum2, MyEnum3);
In the generated JS file, it is possible do convert the enumerator value in a const string, like, "MyEnum1"?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230623/b9d94fd7/attachment.htm>
More information about the Pas2js
mailing list