And if you also want to be sure that also the Method %New exists you my use
write $$$comMemberDefined(ClassName,"m","%New")
[just reading through %occReference.inc]
- Log in to post comments
And if you also want to be sure that also the Method %New exists you my use
write $$$comMemberDefined(ClassName,"m","%New")
[just reading through %occReference.inc]
I'm fully with you.
Using hidden %System.whatever Classes is as bad practice as using undocumented $zu(anynumber, , , )
wow
Using the term MACRO for code saved as .INC is quite a challenge to beginners working in .MAC and more in .CLS
Always a nice check for a trainer to verify attention of his victims
set exist=##class(%Dictionary.CompiledClass).%ExistsId(ClassName)
will tell you the status
If there is an index defined on PBD_PBO_ParRef is it correctly generated?
If not sure, do rebuild index from MgmtPortal.
What about chopping your query like this or similar
lastID=0
"Select TOP 10000 ID,Text from eprinstance.isegment where ID > ?"
passing lastID as query Parameter
Now you loop on it until you collected all records.
The basic idea is to limit your result set by TOP as your partition allows.
it's definitely independent of Cache versions.
I wish I had this half a year ago when I was teaching Caché basics to total fresh developers.
Great stuff.
Robert