Hi all,
is it possible to have something like this :
asm
var my_JSvar;
dosomething_with_myJSvar;
end;
and in another part of program retrieve my_JSvar in a different asm bloc or somethere ?
all ideas are welcome.
Thank.
Gilles
Hi all,
is it possible to have something like this :
asm
var my_JSvar;
dosomething_with_myJSvar;
end;
and in another part of program retrieve my_JSvar in a different asm bloc or somethere ?
all ideas are welcome.
Thank.
Gilles
You can use delphi variables. e.g.
var
xxx:Integer;
begin
asm
var xxx = 123;
end;
GlobalXXX:=xxx;
end;
and elsewhere:
var xxx:Integer;
begin
xxx:=GlobalXXX;
asm
var yyy = xxx;
...
end;
end;
Thanks Ken
I've found the solution, in fact I needed Javascript global variables.
To resolve this I've used a js file call from the main html file with the declaration of them.
api.js
var myvar1;
var myvar2;
And I can use them everywhere in the program.
asm
myvar1; // known here
end;