none
Declaring a Public Const RRS feed

  • Question

  • I have declared a Public const in a startup template and verified that the variable is loaded.  However, when I use that variable from another template, it says the variable is undefined.  I know this is something very basic.  Thanks.
    Wednesday, February 29, 2012 6:53 PM

Answers

  • Declaring a variable as Public makes it available to all modules within the same template, but not to other templates.

    You can, however, set a reference to the startup template in the other template (in Tools | References...); this will make all public items from the startup template available to the code in the other template.


    Regards, Hans Vogelaar

    • Marked as answer by orlandp Wednesday, February 29, 2012 9:56 PM
    Wednesday, February 29, 2012 7:53 PM