Question
· Apr 11

using variable as package/class name to call Class method

Is it possible to use a variable instead the actual class name when calling a class method?

Ex.

s var = "MyPackage.MyClass"

d ##class(var).Main()

Product version: IRIS 2021.1
$ZV: 2021.1.2
Discussion (6)2
Log in or sign up to continue