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

WVUTL10.m

Go to the documentation of this file.
  1. WVUTL10 ;HCIOFO/FT-Women's Health Utility Routine ;1/12/01 14:41
  1. ;;1.0;WOMEN'S HEALTH;**14**;Sep 30, 1998
  1. STOPCHK(FLAG) ; Does user want to stop background task?
  1. ; FLAG: 0 - Check is done before any output to the user.
  1. ; 1 - Check is done after output to user has begun.
  1. Q:'$D(ZTQUEUED) ;not a background task
  1. I $$S^%ZTLOAD D
  1. .S ZTSTOP=1 ;set TaskMan variable equal to 1 to stop task
  1. .K ZTREQ ;keep record of task in task log
  1. .Q
  1. Q:+$G(ZTSTOP)=0 ;no request to stop task
  1. Q:'FLAG ;don't send message to output device
  1. ; Print message to output device
  1. N WVSTOP
  1. S WVSTOP(1)=" *** OUTPUT STOPPED AT USER'S REQUEST ***"
  1. S WVSTOP(2)=" Option Name: "_$S($P($G(XQY0),"^")]"":$P($G(XQY0),"^"),1:"Unknown")
  1. S WVSTOP(3)=" Option Menu Text: "_$S($P($G(XQY0),"^",2)]"":$P($G(XQY0),"^",2),1:"Unknown")
  1. S WVSTOP(4)=" Task #: "_$S(+$G(ZTSK)>0:+$G(ZTSK),1:"Unknown")
  1. D EN^DDIOL(.WVSTOP,"","!?10")
  1. Q