Question
· Sep 19, 2019

run a method of my class?

 

Guys, I made an application, how can I run the methods in the terminal?

thanks.
 

Discussion (4)1
Log in or sign up to continue

As a follow up to this, if you're using the ##class(class name).myMethod(args) syntax and it's not working, it may be that you're trying to call an instance method, a method called on an object instance of your class, rather than a class method, a method called on the class itself.

In that case, you'd want to try something like:

set myObj = ##class(class name).%New()

do myObj.myMethod(args)

Hope this helps!