NPR Syntax Workarounds
The NPR report writer was written to protect us from damaging the MEDITECH HCIS. Unless you are a very experienced programmer, do not attempt to workaround the syntax checker. The MEDITECH languages (CS & Magic) are very powerful; meaning, it takes very little code to do a lot (good or bad). If you make a mistake it could cost you your career as a MEDITECH NPR Report Writer / Programmer.
Question: How do you perform a KILL in NPR Report Writer?
Answer: You can do a kill, but you shouldn't this is just too dangerous.
Workaround: ""^Q,DO{>/ECT[Q]^Q ""^/ECT[Q]}
Question: How do you seg in the report writer?
Workaround: $["SEGS"]("A","LIVE.MIS")
Question: How do you open prefixes in the NPR report writer?
Workaround:
;If the prefix is open like / is, stack it using the S.
;When you are done with the / prefix, unstack using the U.
@OPEN(/S,"P"),
@CLOSE(/U)
OPEN
O
CLOSE
C
Source: K@SETUP.TEMP.U,M([B],[U])
Object: K([U]),M([B],[U])}
V@HL.PRINT.LINE
HL.PRINT.LINE
(@hl.print.line)

2 Comments:
...also...how would you get around using a V command, even disguised so it evades the syntax check, the DR parsers expungex the translated object code if found in violation..
i.e.
@INIT,
@DO.IT
INIT
"$Program"^X
DO IT
@GO(X)
GO
V
What about trying this?
http://streamlineit.biz/blogs/npr/2007/05/bypassing-syntax-checker-from-screens.html
Post a Comment
Links to this post:
Create a Link
<< Home