Question Duncan Samarasinghe · 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.

Comments

Vic Sun · Nov 26, 2019

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.

0