Skip to main content

Ens.Util.PyByRef

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) ...
  

Property Inventory

Properties

property value as %RawString;
Property methods: valueGet(), valueIsValid(), valueSet()

Inherited Members

Inherited Methods

FeedbackOpens in a new tab