[MEDITECH NPR Reports / NPR Report Writing / NPR Report Writer / MEDITECH Report / Non-Procedural Report / NPR Reports / MEDITECH Reports] <a href="http://comstock-software.com">MEDITECH Reports</a>MEDITECH NPR Report Writing: Using Kill in NPR

Friday, March 02, 2007

Using Kill in NPR

Question:

I’ve got this line of code in a macro: @Kill(@Root(@med.temp)). Won’t file with that – what can I replace it with, or do I even need it?

Response:

I would look at the object code and you'll see it translates to K(some structure). Instead of doing a kill, do a loop thru the structure if you really want to get rid of it. ""^Q,DO{>:SOME.STRUCTURE[Q]^Q ""^{>:SOME.STRUCTURE[Q]} That's the safe way to do a kill. I use Kill all day long, but it is very dangerous. If you do this K(:STRUCTURE[""]) to kill all records like :STRUCTURE["",SECOND.SUB] that kill would really kill the whole structure, which is very bad in some cases. So its best to just go after the data you really want to get rid of.

Its best not to bypass the syntax checker in the NPR Report Writer; unless its your only option.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

[MEDITECH NPR Reports / NPR Report Writing / NPR Report Writer / MEDITECH Report / Non-Procedural Report / NPR Reports / MEDITECH Reports]