Table_of_Contents.html
http://plectrum.com/novocard/
close%28%29.html
go%28%29.html

global(...)

global("variable name", "variable name", ...);


The global makes a JavaScript variable and its contents available to any handler in NovoCard. Changing the value of a global variable in any handler changes its value everywhere.


Note: Each variable name in the list must be in quotes. You must use the global command at the top of each handler to declare the global variables you want to use and declare each variable with a var keyword. Global variables are not saved between sessions of NovoCard.


   on openCard

     global("myVar");

     var myVar = "Hello, world.";

   end openCard


   on touchUp // button script

     global("myVar");

     var myVar;

     answer(myVar); // "Hello, world." is displayed!

   end touchUp