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

GMRCPSEL.m

Go to the documentation of this file.
  1. GMRCPSEL ;SLC/DCM - Select Range Of Items From List ;5/20/98 14:20
  1. ;;3.0;CONSULT/REQUEST TRACKING;**1**;DEC 27, 1997
  1. SEL ;Entry point into select option
  1. I '$D(^TMP("GMRCR",$J,"CS","AD")) W !,"No Consult Orders Exist To Select From.",! S GMRCSEL="",GMRCQUIT=1 Q
  1. I '$O(^TMP("GMRCR",$J,"CS","AD")),BLK=1 S GMRCSEL=BLK Q
  1. S GMRCSEL="" W !,"Choose No. 1-"_BLK_": " R X:DTIME S:X="^^" DIROUT=1 I '$T!(X["^") S (DTOUT,GMRCQUT)=1 Q
  1. I X["?" D SELHELP G SEL
  1. I X="" S GMRCQUT=1 Q
  1. I $S(X'?.N1",".N.E:1,X<0:1,X>BLK:1,1:0) D SELHELP G SEL
  1. S GMRCSEL=X
  1. Q
  1. SELHELP ;Help to select a valid entry
  1. W !,"Select a request by typing the number in the left column and pressing <ENTER>",!,"or by selecting a range of numbers in the left column, separated by commas.",!
  1. Q