Search code examples
rokubrightscript

Call function from another file in BrightScript


I have two files in source folder (BrightScript project), file a.brs and file b.brs

There is a function in a.brs file

function aa()
    print "Hello World!"
end function

and I want to call it from b.brs

aa()

There is an error

Function Call Operator ( ) attempted on non-function. (runtime error &he0)

I can not understand this problem.Can anybody help me?


Solution

  • Try Function aa() as Void, it might be missing the type on the function declaration.