class Ens.Util.PyByRef
extends %Library.RegisteredObject
Helper to return additional values from Embedded Python methods to ObjectScript methods
Instead of a ByRef argument
An instance of Ens.Util.PyByRef is created
set status=##class(Ens.Util.PyByRef).%New()
Within the Python method set the property "Value" to for example a status code
status.value=iris.cls("%SYSTEM.Status").ERROR(5001,"Some Error")
In the calling code, retrieve the content from "Value" property.
if $$$ISERR(status.value) ...
Parameters
|
Properties
|
Methods
|
Queries
|
Indices
|
ForeignKeys
|
Triggers
|
|
1
|
|
|
|
|
|