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

DINIT002.m

Go to the documentation of this file.
  1. DINIT002 ; SFISC/TKW-DIALOG & LANGUAGE FILE INITS ; 3/30/99 10:41:48
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) S @X=Y
  1. Q Q
  1. ;;^DD(.84,6,21,5,0)
  1. ;;=special flag into a global or local variable to notify the calling routine
  1. ;;^DD(.84,6,21,6,0)
  1. ;;=that some extra action needed to be taken.
  1. ;;^DD(.84,6,23,0)
  1. ;;=^^7^7^2941122^
  1. ;;^DD(.84,6,23,1,0)
  1. ;;=At the time of executing this code
  1. ;;^DD(.84,6,23,2,0)
  1. ;;= D0 = IEN for the entry in the DIALOG file
  1. ;;^DD(.84,6,23,3,0)
  1. ;;= DIPI(n) = (for sequential number n) parameters incorporated in the text.
  1. ;;^DD(.84,6,23,4,0)
  1. ;;= DIPE(n) = parameters output back to the user
  1. ;;^DD(.84,6,23,5,0)
  1. ;;=
  1. ;;^DD(.84,6,23,6,0)
  1. ;;=All other variables used in this code should use your packages namespace,
  1. ;;^DD(.84,6,23,7,0)
  1. ;;=and should be NEWed.
  1. ;;^DD(.84,6,"DT")
  1. ;;=2940520
  1. ;;^DD(.84,7,0)
  1. ;;=TRANSLATION^.847P^^4;0
  1. ;;^DD(.84,8,0)
  1. ;;=CALLED FROM ENTRY POINTS^.841^^5;0
  1. ;;^DD(.841,0)
  1. ;;=CALLED FROM ENTRY POINTS SUB-FIELD^^.05^2
  1. ;;^DD(.841,0,"DT")
  1. ;;=2940411
  1. ;;^DD(.841,0,"IX","B",.841,.01)
  1. ;;=
  1. ;;^DD(.841,0,"NM","CALLED FROM ENTRY POINTS")
  1. ;;=
  1. ;;^DD(.841,0,"UP")
  1. ;;=.84
  1. ;;^DD(.841,.01,0)
  1. ;;=ROUTINE NAME^MF^^0;1^K:$L(X)>8!($L(X)<1) X
  1. ;;^DD(.841,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.841,.01,1,1,0)
  1. ;;=.841^B
  1. ;;^DD(.841,.01,1,1,1)
  1. ;;=S ^DI(.84,DA(1),5,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.841,.01,1,1,2)
  1. ;;=K ^DI(.84,DA(1),5,"B",$E(X,1,30),DA)
  1. ;;^DD(.841,.01,3)
  1. ;;=Answer must be 1-8 characters in length.
  1. ;;^DD(.841,.01,21,0)
  1. ;;=^^6^6^2940411^
  1. ;;^DD(.841,.01,21,1,0)
  1. ;;=This multiple is used for documentation only. Entries are made to this
  1. ;;^DD(.841,.01,21,2,0)
  1. ;;=subfile ONLY for ERROR type text. Enter the routine name of an entry
  1. ;;^DD(.841,.01,21,3,0)
  1. ;;=point that may generate this error message. You only need to enter the
  1. ;;^DD(.841,.01,21,4,0)
  1. ;;=names of routines that directly generate the error through a call to
  1. ;;^DD(.841,.01,21,5,0)
  1. ;;=^DIALOG, and not when the error is generated by some other utility called
  1. ;;^DD(.841,.01,21,6,0)
  1. ;;=from your routine.
  1. ;;^DD(.841,.01,"DT")
  1. ;;=2940411
  1. ;;^DD(.841,.05,0)
  1. ;;=LINE TAG^F^^0;2^K:$L(X)>10!($L(X)<1) X
  1. ;;^DD(.841,.05,3)
  1. ;;=Answer must be 1-10 characters in length.
  1. ;;^DD(.841,.05,21,0)
  1. ;;=^^6^6^2940411^
  1. ;;^DD(.841,.05,21,1,0)
  1. ;;=This multiple is used for documentation only. Entries are made to this
  1. ;;^DD(.841,.05,21,2,0)
  1. ;;=subfile ONLY for ERROR type text. Enter the line tag of an entry point
  1. ;;^DD(.841,.05,21,3,0)
  1. ;;=that may generate this error message. You only need to enter the names of
  1. ;;^DD(.841,.05,21,4,0)
  1. ;;=routines that directly generate the error through a call to ^DIALOG, and
  1. ;;^DD(.841,.05,21,5,0)
  1. ;;=not when the error is generated by some other utility called from your
  1. ;;^DD(.841,.05,21,6,0)
  1. ;;=routine.
  1. ;;^DD(.841,.05,"DT")
  1. ;;=2940411
  1. ;;^DD(.842,0)
  1. ;;=DESCRIPTION SUB-FIELD^^.01^1
  1. ;;^DD(.842,0,"DT")
  1. ;;=2930614
  1. ;;^DD(.842,0,"NM","DESCRIPTION")
  1. ;;=
  1. ;;^DD(.842,0,"UP")
  1. ;;=.84
  1. ;;^DD(.842,.01,0)
  1. ;;=DESCRIPTION^W^^0;1^Q
  1. ;;^DD(.842,.01,3)
  1. ;;=Describe the use of this dialogue.
  1. ;;^DD(.842,.01,"DT")
  1. ;;=2930614
  1. ;;^DD(.844,0)
  1. ;;=TEXT SUB-FIELD^^.01^1
  1. ;;^DD(.844,0,"DT")
  1. ;;=2930811
  1. ;;^DD(.844,0,"NM","TEXT")
  1. ;;=
  1. ;;^DD(.844,0,"UP")
  1. ;;=.84
  1. ;;^DD(.844,.01,0)
  1. ;;=TEXT^WL^^0;1^Q
  1. ;;^DD(.844,.01,3)
  1. ;;=Enter the actual text of the dialogue, with optional parameter windows.
  1. ;;^DD(.844,.01,"DT")
  1. ;;=2930811
  1. ;;^DD(.845,0)
  1. ;;=PARAMETER SUB-FIELD^^1^2
  1. ;;^DD(.845,0,"DT")
  1. ;;=2931105
  1. ;;^DD(.845,0,"IX","B",.845,.01)
  1. ;;=
  1. ;;^DD(.845,0,"NM","PARAMETER")
  1. ;;=
  1. ;;^DD(.845,0,"UP")
  1. ;;=.84
  1. ;;^DD(.845,.01,0)
  1. ;;=PARAMETER SUBSCRIPT^MF^^0;1^K:$L(X)>20!($L(X)<1) X
  1. ;;^DD(.845,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.845,.01,1,1,0)
  1. ;;=.845^B
  1. ;;^DD(.845,.01,1,1,1)
  1. ;;=S ^DI(.84,DA(1),3,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.845,.01,1,1,2)
  1. ;;=K ^DI(.84,DA(1),3,"B",$E(X,1,30),DA)
  1. ;;^DD(.845,.01,3)
  1. ;;=This entry corresponds to the subscript of an entry in either the text or output parameter list to the BLD^DIALOG and $$EZBLD^DIALOG routine. Answer must be 1-20 characters in length.
  1. ;;^DD(.845,.01,21,0)
  1. ;;=^^7^7^2941122^
  1. ;;^DD(.845,.01,21,1,0)
  1. ;;=This multiple is used for documentation purposes only. The entry in the
  1. ;;^DD(.845,.01,21,2,0)
  1. ;;=.01 field of this multiple will correspond to a subscript in either the
  1. ;;^DD(.845,.01,21,3,0)
  1. ;;=text or output parameter list, that are passed to the routines that build
  1. ;;^DD(.845,.01,21,4,0)
  1. ;;=dialogue messages, BLD^DIALOG and $$EZBLD^DIALOG. This routine will insert
  1. ;;^DD(.845,.01,21,5,0)
  1. ;;=into each 'window' from the TEXT field, the corresponding entry out of the
  1. ;;^DD(.845,.01,21,6,0)
  1. ;;=text parameter list. For errors only, it passes any entries from the
  1. ;;^DD(.845,.01,21,7,0)
  1. ;;=output parameter list back to the user as entries in its output array.
  1. ;;^DD(.845,.01,"DT")
  1. ;;=2931105
  1. ;;^DD(.845,1,0)
  1. ;;=PARAMETER DESCRIPTION^F^^0;2^K:$L(X)>230!($L(X)<1) X
  1. ;;^DD(.845,1,3)
  1. ;;=Describe the Parameter for documentation purposes. Answer must be 1-230 characters in length.
  1. ;;^DD(.845,1,21,0)
  1. ;;=^^5^5^2941122^
  1. ;;^DD(.845,1,21,1,0)
  1. ;;=This field is used for documentation purposes only. It describes the text
  1. ;;^DD(.845,1,21,2,0)
  1. ;;=and/or output parameter(s) that are passed to BLD^DIALOG and
  1. ;;^DD(.845,1,21,3,0)
  1. ;;=$$EZBLD^DIALOG. The same parameter can be used both as a text parameter
  1. ;;^DD(.845,1,21,4,0)
  1. ;;=(i.e., inserted into the text when it is built), and as an output
  1. ;;^DD(.845,1,21,5,0)
  1. ;;=parameter (i.e., a parameter passed back in a list to the user)
  1. ;;^DD(.845,1,"DT")
  1. ;;=2930614
  1. ;;^DD(.847,0)
  1. ;;=TRANSLATION SUB-FIELD^^1^2
  1. ;;^DD(.847,0,"DT")
  1. ;;=2940524
  1. ;;^DD(.847,0,"IX","B",.847,.01)
  1. ;;=
  1. ;;^DD(.847,0,"NM","TRANSLATION")
  1. ;;=
  1. ;;^DD(.847,0,"UP")
  1. ;;=.84
  1. ;;^DD(.847,.01,0)
  1. ;;=LANGUAGE^M*P.85'X^DI(.85,^0;1^S DIC("S")="I Y>1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X S:$G(X) DINUM=X
  1. ;;^DD(.847,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.847,.01,1,1,0)
  1. ;;=.847^B
  1. ;;^DD(.847,.01,1,1,1)
  1. ;;=S ^DI(.84,DA(1),4,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.847,.01,1,1,2)
  1. ;;=K ^DI(.84,DA(1),4,"B",$E(X,1,30),DA)
  1. ;;^DD(.847,.01,3)
  1. ;;=Enter the number or name for a non-English language.
  1. ;;^DD(.847,.01,12)
  1. ;;=English language cannot be selected.
  1. ;;^DD(.847,.01,12.1)
  1. ;;=S DIC("S")="I Y>1"
  1. ;;^DD(.847,.01,21,0)
  1. ;;=^^3^3^2941118^^
  1. ;;^DD(.847,.01,21,1,0)
  1. ;;=Pointer to the LANGUAGE file. If FileMan system variable DUZ("LANG") is
  1. ;;^DD(.847,.01,21,2,0)
  1. ;;=set to an integer greater than 1, we use that number to extract dialogue
  1. ;;^DD(.847,.01,21,3,0)
  1. ;;=text for the specified language from this multiple.