Recent posts:
Recent replies:
ClassMethod testvalidator(
  class As %String,
  value As %StringAs %Status
{
 set validator "(out){set out = ##class("_class_").IsValid("""_value_""")}"
 xecute (validator,.sc)

 write sc,!
 quit sc
}

Use $CLASSMETHOD and you won't have such issues:


USER>set sc=$CLASSMETHOD("%Numeric","IsValid","BLAH")

or

ClassMethod testvalidator(class As %Stringvalue As %StringAs %Status
{
 set sc=$CLASSMETHOD(class,"IsValid",value)
 write sc,!
 quit sc
}
Set object ##class(%ZEN.proxyObject).%New()
set object.city "New York"
set object.Target "TEST" 
set object.Details "TEST"
set object.RefCode "123"
set object.Reason "123TTTT"

set string=object.%Serialize()

;write string,!

set anotherObj=##class(%ZEN.proxyObject).%New()
do anotherObj.%ZENDeserialize(string)

write anotherObj.Reason ; ==> 123TTTT
Followers:
Following:
Vitaliy has not followed anybody yet.
Global Masters badges:
Vitaliy has no Global Masters badges yet.