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

MCARDNQ2.m

Go to the documentation of this file.
  1. MCARDNQ2 ;WISC/TJK,JA-SCREEN INPUT - QUESTIONMARKS (PART 2) ;7/9/96 12:09
  1. ;;2.3;Medicine;;09/13/1996
  1. FUNC ;
  1. ;JAH don't display commands for option MCRHDELVISIT
  1. I $D(MCDSPTYP) Q
  1. I $D(MCDID) Q
  1. I ('$D(MCMASS)),('$D(MCHELPS2)) Q
  1. I '$D(DJTOGGLE) D FUNCC
  1. E D FUNCK
  1. K MCMASS S MCDID=1
  1. Q
  1. FUNCC ;Display help for Line Entry
  1. X DJCP
  1. S DJCHO="C" D DISPLAY("LINE") S MCDID=1
  1. S @$P(DJJ(V),U,2) X XY
  1. Q
  1. FUNCK ;Display help for Keypad
  1. X DJCP S DJCHO="K" D DISPLAY("KEYPAD") S MCDID=1
  1. S @$P(DJJ(V),U,2) X XY
  1. Q
  1. DISPLAY(MODE) ;Display help
  1. N LOOP,LINE,MODE2
  1. S X=0 X ^%ZOSF("RM") ; turn off auto wrap ; REW added since MSM count escape sequences (some of the time!!!)
  1. S MODE2=$J(MODE,6)
  1. S MODE2=$S(MODE="LINE":" ",1:MODE)
  1. X XY W IORVON,DJHIN,MODE2," COMMANDS:",DJLIN,IORVOFF," (C)omputed, (M)ultiple, (W)ord processing, (R)ead only"
  1. F LOOP=1:1:7 S LINE=$P($T(@MODE+LOOP),";;",2) D
  1. .W !,DJHIN,$P(LINE,";",1),DJLIN," -- ",$P(LINE,";",2)," "
  1. .W DJHIN,$P(LINE,";",3),DJLIN," -- ",$P(LINE,";",4)
  1. S X=+$G(IOM) X ^%ZOSF("RM") ; reset margin/auto wrap ; REW added since MSM count escape sequences (some of the time!!!)
  1. Q
  1. FUNC2 X DJCP
  1. W DJHIN X XY W "COMMANDS",DJLIN,!
  1. W "^ -- Quit",?41,"^nn -- Go to the 'nn' statement"
  1. W !,"@ -- delete data",?41,"CR -- Go to the next statement"
  1. W !," -- Space bar, recall previous record",?41,"< -- Go to previous statement"
  1. W !,"? -- Help prompt",?41,"?? -- For more information about field"
  1. W !,"^C -- Command menu display"
  1. W !,"^L -- List current elements"
  1. W !,"Note: (C)omputed, (M)ultiple, (W)ord processing, (R)ead only"
  1. Q
  1. LINE ;
  1. ;; ^T or PF1;Toggle to Keypad mode ; ?//??;Field help
  1. ;; ^C ;Display Commands (current mode) ;<RET>Next field
  1. ;; ^R ;Repaint the screen ; <Previous field
  1. ;; ^D ;Next screen ; ^nn;Go to the 'nn' field
  1. ;; ^U ;Previous screen ; @;Delete data
  1. ;; ^O ;Turn on/off automatic help; ^;Quit
  1. ;; ^H ;Help ; Space bar <RTN>Recall previous answer
  1. KEYPAD ;
  1. ;;PF1 or ^T;Toggle to Numberpad mode; PF2;Turn on/off auto help
  1. ;;KP1 ;Display Commands (current mode) ;KP7;Help
  1. ;;KP3 ;Exit ; PF3 or PF4;Field help
  1. ;;KP4 ;Go to the 'nn' field ; Up Arrow;Previous field
  1. ;;KP5 ;Repaint the screen ; Down Arrow;Next field
  1. ;;KP6 ;Recall previous answer ; Right Arrow;Next Screen
  1. ;;KP9 ;Delete data ; Left Arrow;Previous Screen