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

XQLOCK1.m

Go to the documentation of this file.
  1. XQLOCK1 ;MJM/SEA - Utilities for keys in the tree ;04/07/95 11:08 [ 04/02/2003 8:29 AM ]
  1. ;;8.0;KERNEL;**1002,1003,1004,1005,1007**;APR 1, 2003
  1. ;;8.0;KERNEL;;Jul 10, 1995
  1. ;
  1. EDIT ;Edit the set of keys we're working with
  1. W !!,"Enter one of the following codes followed by key name(s): ",!!?5,"'-' (minus) to remove a key from the set",!?8,"(For example ""-XQJUNK"" or ""-XQJUNK,XQMOREJUNK"")"
  1. ;W !?5,"'+' (plus) to add a key to this set of keys",!?8,"(For example ""+XQJUNK"" or ""+XQJUNK,XQKEY2"")"
  1. W !?5,"'S' to show the current key set"
  1. W !?5,"'RETURN' to end the editing session",!?5,"'^' to quit thiogram altogether",!
  1. R !!,"Enter -KEY, S, or ^ :",XQUR:DTIME Q:XQUR=""!(XQUR=U)!("-+^"'[$E(XQUR))
  1. I $E(XQUR,1)="-" S XQUR=$P(XQUR,"-",2) S %=1 F S XQK=$P(XQUR,",",%) Q:XQK="" S %=%+1 D KEY^XQLOCK I XQ>0 K XQKEY(XQK)
  1. I "Ss"[XQUR D SHOW^XQLOCK G EDIT
  1. Q
  1. ;
  1. PAUSE ;Hold screen so it doesn't run off
  1. W !!,"Hit 'RETURN' to continue, '^' to stop." R XQDUMMY:DTIME
  1. I XQDUMMY=U S XQI=-1 K XQDUMMY Q
  1. W !!," Option Name",?23,"Option Text",?62,"Locked With",!
  1. K XQDUMMY
  1. Q