home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / do101j2.arj / FUNCTION.SCR < prev    next >
Text File  |  1991-12-22  |  1KB  |  40 lines

  1. * SCRIPT: FUNCTION.SCR -- Other Functions
  2. .pg wi full clr
  3. /FRAME ~179 ~196 ~217 ~191 ~192 ~218
  4. /BOX 20 1 60 20 11 7 ""
  5. .bl
  6. /DRAW V 61 2 21 0 ░
  7. /DRAW H 21 21 61 0 ░
  8. .wi 21 2 59 19 ye
  9.     O T H E R   F U N C T I O N S
  10. .wi 22 4 58 19
  11. »%t«DO»#« contains other functions which
  12. perform specialized tasks.
  13.  
  14. »wh«~064math»#«  performs math functions
  15.        in a line like the
  16.        »%t«/MATH»#« command.
  17.  
  18. .pg -24
  19. .wi full clr cy
  20.     FUNCTION NAME»gray«: »%t« Math »cy«
  21.  
  22.     ~064math({DateString})
  23. /cw
  24.     Allows you to perform calculations in the middle of a a line.
  25.     The command allows all the functions contained in the »%t«Math»#«
  26.     command. See that command for a complete list of
  27.     capabilities.
  28.  
  29.     Let's look at a couple of examples. Press »bo«<enter>»#« to execute
  30.     or display each line.
  31.  
  32. |   Here is a calculation in the middle of a display line: »re«@math(5*10)»#«
  33.  
  34. |/SET V1 @math(100/5)
  35.     »cy«V1 »gy«= »wh«%V1»#«
  36. |/SET V2 @math(5*%v1)
  37.     »cy«V2 »gy«= »wh«%V2»#«
  38.  
  39. /ENDEXEC CLEAR
  40.