Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBDFU6

IBDFU6.m

Go to the documentation of this file.
  1. IBDFU6 ;ALB/CJM - ENCOUNTER FORM - (utilities for data fields);3/29/93
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. FORMAT(ARY,WIDTH,LABEL) ;formats the word-processing field pointed to by @ARY into a column of width=WIDTH
  1. N LINE,W
  1. K ^UTILITY($J,"W"),DIWF
  1. S LINE=0,DIWL=1,DIWR=WIDTH
  1. I $D(LABEL) S X=$E(LABEL_" ",1,WIDTH) I X'="" D ^DIWP
  1. F S LINE=$O(@ARY@(LINE)) Q:'LINE S X=$G(@ARY@(LINE,0)) I X'="" D ^DIWP
  1. K X,DIWL,DIWR,DIWF
  1. Q