[Pas2js] how to access variables between various procedures

Michael Van Canneyt michael at freepascal.org
Tue Sep 15 13:23:26 CEST 2020



On Tue, 15 Sep 2020, Mgr. Janusz Chmiel wrote:

> Find where to add implementation keyword is really adventure.
> But thank you for yours time and for yours help. I have tried to add 
> implementation
> var a: integer;
> to The various places inside The source code. But I AM getting syntax error
> or 
> identifier expected errors.

If you are just using a program, add it after (or before) the type section.

Var
   A : Integer;

Type
   TQuestion = Class
   end;

Michael.


More information about the Pas2js mailing list