Question
· Nov 26, 2019

How do run a class from the terminal, and pass parameters?

Please can I have a quick simple answer.

I am still learning.

 

Thank-you.

Discussion (2)2
Log in or sign up to continue

Hello Duncan,

Please see the following documentation. Defining and Calling Methods.

Some examples:

 do ##class(Package.Class).Method(Args)
 set myval= ##class(Package.Class).Method(Args)
 write ##class(Package.Class).Method(Args) 

You may find some of the courses on learning.intersystems.com (linked in the top bar of the developer community as well) useful such as the Caché Objects Introduction.