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

XBHELP.m

Go to the documentation of this file.
  1. XBHELP ; IHS/ADC/GTH - DISPLAY HELP TEXT FROM ROUTINE ; [ 02/07/97 3:02 PM ]
  1. ;;3.0;IHS/VA UTILITIES;;FEB 07, 1997
  1. ;
  1. ; Display text from the named routine, beginning at the
  1. ; named label. The fourth semi-colon piece is displayed.
  1. ; If the third semi-colon piece is "@", the indirection
  1. ; of the fourth semi-colon piece is written. The display
  1. ; ends if null or "###" is returned.
  1. ;
  1. ; E.g:
  1. ;
  1. ; D HELP^XBHELP("LABEL","ROUTINE",0) will print the text
  1. ; after LABEL:
  1. ;
  1. ; ROUTINE ;
  1. ; LABEL ;
  1. ; ;;Please enter what I think you should enter.
  1. ; ;;@;*7
  1. ; ;;@;!
  1. ; ;;###
  1. ;
  1. HELP(L,R,T) ;PEP - Display text at label L, routine R, tab T spaces (default 4).
  1. Q:$D(ZTQUEUED)
  1. S:$G(T)'?1.N T=4
  1. NEW X
  1. W !
  1. F %=1:1 S X=$T(@L+%^@R) Q:($P(X,";",3)="###")!(X="") D
  1. . I $P(X,";",3)="@" W @($P(X,";",4)) Q
  1. . W !?T,$P(X,";",3)
  1. .Q
  1. Q
  1. ;