Muthu's version won't work inside a procedure block (the default for Cache 5 methods) because OBJID isn't visible within the Xecute context.
John Murray "Muthu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Joost, > > > obj = ##class(classname).%Open(OBJID) ' Does not work, message Class > > 'classname' does not exist > > This is an alternative way by using the Xecute command > > Set cmdstr="Set obj = ##class("_classname_").%Open(OBJID)" > Xecute cmdstr > > Thanks > Muthu Rajan > > "Ram�n Jim�nez" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Joost, > > > > > In ObjectScript I've tried > > > > > > obj = ##class(classname).%Open(OBJID) ' Does not work, message Class > > > 'classname' does not exist > > > > Try > > > > Set obj = $zobjclassmethod( classname, "%OpenId", OBJID ) > > > > HTH, > > > > Ram�n > > > > -- > > ZCacheLib - Open Source Extensions for Cach� > > http://www.zcachelib.org > >
