Unlock the Power of MEDITECH with MEDITECH KE

1

1

Hi,

I need to be able to access the count in the macro called from a trailer key. Is there a global variable for this? I can do a running total but I am trying to avoid this.

Thanks Thillai

flag
Is the count a variable in your macro? Or is the count calculated in the trailer key using a Z.count? – John Sharpe Jan 5 at 18:21
I want the count value in a variable in the macro. How can I refer to Z.count in a macro? – Thillai Jan 6 at 10:24

1 Answer

0

Hi,

You can actually do this, on a TK or TR line place a calculated field with :

DAT=FREE
LEN=10
PRT=N
VAL=@Z.count^/MYCOUNT

Then you just reference /MYCOUNT in the macro. The PRT=N will prevent the field from printing, but it has to be a line that will print.

Dave

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.