Page 1 of 1

How to nest custom routines

Posted: Fri May 30, 2014 3:37 pm
by MrBlack
How do you reference a custom routine within another custom routine?

test2

Code: Select all

Ans = 2
test1

Code: Select all

Ans = 1
Ans = test2()
I would expect the result to be '2' but I get a:

Code: Select all

Array 'test2' never dimensioned.

Posted: Fri May 30, 2014 4:06 pm
by MrBlack
Found the answer:

viewtopic.php?t=91285&sid=b6ac784102376 ... 914e68fb5d

So the code for test1 looks like this:

Code: Select all

deffun test2(Arg1) calling "DSU.test2" 

Ans = test2(0)