home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / rxdlg11.zip / rx3.ipf < prev    next >
Text File  |  1995-03-02  |  3KB  |  99 lines

  1. .* RX3.IPF - Information Tag Language file for RX3.EXE new REXX commands.
  2. :userdoc.
  3. :Title.RX3 REXX Commands
  4.  
  5. .*============================================================================
  6. .* RX3 REXX Commands
  7. .*--------------------------------------------------------------
  8. :h1 res=50000.RX3 REXX Commands
  9. :i1 id=App.RX3 REXX Commands
  10.  
  11. :p.RX3.EXE adds the following REXX commands to both standard REXX (ie, PARSE,
  12. LEFT, etc), plus Rexx Dialog (ie, RXDLG, RXSET, etc) commands.
  13.  
  14. :p.APPADD
  15. .br
  16. APPSUBTRACT
  17.  
  18. :p.A REXX script may use any of these commands.  The script must be
  19. launched by RX3.EXE.
  20.  
  21. :p.In order to have automatic display of all error messages generated by these
  22. functions, you should use RXERR to set the error display level to 50.
  23.  
  24. :p.The following pages describe each command's syntax, args, returns, etc.
  25.  
  26.  
  27. .*--------------------------------------------------------------
  28. .*   APPADD
  29. .*--------------------------------------------------------------
  30. :h2 res=50001.APPADD
  31. :i2 refid=App.APPADD
  32. :parml tsize=15 break=none.
  33.  
  34. :pt.:hp8.Template:ehp8.
  35. :pd.APPADD number1 number2
  36.  
  37. :pt.:hp8.Description:ehp8.
  38. :pd.This command adds number1 to number2 and returns the sum.
  39.  
  40. :pt.:hp8.Args:ehp8.
  41. :p.:hp2.number1:ehp2. is the first number to add.
  42.  
  43. :p.:hp2.number2:ehp2. is the second number to add (to the first number).
  44.  
  45. :p.:hp8.Returns:ehp8.
  46. :p.Sets the REXX variable :hp2.SUM:ehp2. to the resulting sum.
  47.  
  48. :eparml.
  49.  
  50. :p.:hp8.Examples:ehp8.
  51. :p./* This adds 5 + 77 and displays the sum */
  52.  
  53. :p.APPADD 5 77
  54. .br
  55. RXSAY '5 + 77 =' SUM
  56.  
  57.  
  58.  
  59. .*--------------------------------------------------------------
  60. .*   APPSUBTRACT
  61. .*--------------------------------------------------------------
  62. :h2 res=50002.APPSUBTRACT
  63. :i2 refid=App.APPSUBTRACT
  64. :parml tsize=15 break=none.
  65.  
  66. :pt.:hp8.Template:ehp8.
  67. :pd.APPSUBTRACT number1 number2
  68.  
  69. :pt.:hp8.Description:ehp8.
  70. :pd.This command subtracts number2 from number1 and returns the result.
  71.  
  72. :pt.:hp8.Args:ehp8.
  73. :p.:hp2.number1:ehp2. is the number to subtract from.
  74.  
  75. :p.:hp2.number2:ehp2. is the second number to subtract (from the first number).
  76.  
  77. :p.:hp8.Returns:ehp8.
  78. :p.Sets the REXX variable :hp2.ANSWER.0:ehp2. to the result.
  79.  
  80. :p.If number2 is larger than number1, then the error message "Second number
  81. smaller than first" or error number 200:hp9.50:ehp9. (ie, display level of 50)
  82. is returned.
  83.  
  84. :eparml.
  85.  
  86. :p.:hp8.Examples:ehp8.
  87. :p./* This subtracts 5 from 77 and displays the result */
  88.  
  89. :p.APPSUBTRACT 77 5
  90. .br
  91. IF RC <> "" THEN RXSAY RC
  92. .br
  93. ELSE RXSAY '77 - 5 =' Answer.0
  94.  
  95.  
  96.  
  97.  
  98. :euserdoc.
  99.