Facility Control

 View Only
  • 1.  Global functions

    Posted 02-18-2016 15:16

    Hi,

    I'm trying to make a global function that will return a value. I'm using a Lookup called 'Functions' with the ogScript for the function in the lookup Value, and the name of the function as the Key. I'm calling it with :

    %const['Functions']['myGlobal']% myGlobal("test");

    This works well until I try to add a return value to the function when I get an error. Is this the best way to implement a global function, and are return values possible?

    Many thanks,
    Martin



  • 2.  RE: Global functions

    Posted 02-27-2016 15:40
    I think I've found the answer - put any global functions inside an tag. They are then globally visible, and can have a return value.
    #DashBoard