home *** CD-ROM | disk | FTP | other *** search
- .pg wi full clr cy
- COMMAND NAME»gray«: »%t« Version »ye«
-
- /VERSION
- /cw
- »%t«Version»#« shows the »%t«DO»#« version, script name and script level
- on line »ye«25»#« of the screen.
- /VERSION
- /SET B 15
- /LOOK 25 17 1
- /IF %Found EQ : CONT
- /SET B 19
- :CONT
- .pg clr
- /GOSUB Arrow %B
- The »ye«version number»#« is composed of three parts:
-
- »gr«MAJOR VERSION»gy«:»#« This number indicates a major revision to the
- »%t«DO»ye« script processor»#«'s capabilities
-
- .pg
- /GOSUB Arrow @math(%B+2)
- »gr«MINOR VERSION»gy«:»#« These are incremental enhancements to the
- capabilities
-
- .pg
- /GOSUB Arrow @math(%B+4)
- »gr«REVISION»gy«:»#« A letter here indicates an error correction or
- revision to the internal workings without
- changes to the »%t«DO»#« capabilities
-
- .pg clr
- /GOSUB Arrow @math(%B+10)
- The »wh«date»#« shows the date on which this version was produced.
-
- .pg
- /GOSUB Arrow @math(%B+25)
- The »cy«Script Name»#« shows the full path name of the current script.
- The »wh«script level»#« follows the script in parentheses.
-
- .pg clr
- /GOSUB Arrow 0
- The »%t«Version»#« command can be helpful in debugging scripts or
- telling the script user information about the script.
-
- »bl«NOTE»gy«:»#« the »cy«Script»#« Name can also be displayed by using the
- special variable »ye«~123script~125»#« like this:
- »gr«
- SCRIPT = {script}
- »#«
- /GOTO End
- :Arrow
- /SET Y {Y}
- .wi full
- /SET title " "
- .go 1 23
- %title(L79)
- %title(L79)
- /IF %Arrow01 NE 0 AEnd
- .go %Arrow01 23 ye
- │
- .go %Arrow01 24
- V
- :AEnd
- .# wi 1 5 80 22
- .go 1 %Y
- /RETURN
- :END
- /ENDEXEC CLEAR
-