[Pas2js] how to access variables between various procedures

Mgr. Janusz Chmiel janusz.chmiel at volny.cz
Tue Sep 15 12:14:45 CEST 2020


Can be global variable declared by using public directive? But When i have
tried to use public yesterday I had no chance and I have got also error.
I have only tried to simply have a variable which would work as a counter.
So when user answer right question, The right answer whould be counted by
using a=a+1.
But I know, that I must respect The characteristics of object Pascal
programming, because I can not mix non object based programming with object
one.



More information about the Pas2js mailing list