[Pas2js] RES: Pas2js Digest, Vol 39, Issue 1
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Jun 1 13:25:27 CEST 2021
On Tue, 1 Jun 2021 13:18:44 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:
> On Tue, 1 Jun 2021, Henrique Gottardi Werlang wrote:
>
> > Unit MyTest;
> >
> > procedure Run; async;
> > begin
> > // do something...
> > end;
> >
> > begin
> > run()._then(function (a : jsvalue) : jsvalue
> > begin
> > end);
> > end.
> >
> > In the line "run()._then(function (a : jsvalue) : jsvalue” give me
> > the error “Error: illegal qualifier "." after "
> > run():Procedure/Function"”
>
> I don't think you can use a procedure, you must use a function.
>
> Mattias will have to confirm.
Correct.
function Run: JSValue; async;
Mattias
More information about the Pas2js
mailing list