All,
I have a script which has multiple namespaces - for simplicity, let's call them Namespace A and Namespace B.
When I call a function from Namespace B and I require
Test1 = Namespace("A");
Test1:IsLeapYear = function({Input_Year},{Default Local},
If(Is String(Input_Year),
Input_Year = Num(Input_Year);
);
If( (Mod(Input_Year,400) == 0 | (Mod(Input_Year,4) == 0 & Mod(Input_Year,100)!= 0)),
return(1);
,
return(0);
);
);
Test2 = Namespace("B");
Test2:MyFun = function({dt_In,TableVarName,Value},{Default Local},
dt_In << New Table Variable(TableVarName,Value);
);it to use a function from Namespace A - how can this be achieved ? So, in the above example, if I wanted to pass IsLeapYear to MyFun for use in its evaluation - how can I do that ?