Product Site

Chapter 7. Functions

7.1. Syntax
7.2. Functions and Subroutines
7.2.1. Search Order
7.2.2. Errors during Execution
7.3. Return Values
7.4. Built-in Functions
7.4.1. ABBREV (Abbreviation)
7.4.2. ABS (Absolute Value)
7.4.3. ADDRESS
7.4.4. ARG (Argument)
7.4.5. B2X (Binary to Hexadecimal)
7.4.6. BEEP
7.4.7. BITAND (Bit by Bit AND)
7.4.8. BITOR (Bit by Bit OR)
7.4.9. BITXOR (Bit by Bit Exclusive OR)
7.4.10. C2D (Character to Decimal)
7.4.11. C2X (Character to Hexadecimal)
7.4.12. CENTER (or CENTRE)
7.4.13. CHANGESTR
7.4.14. CHARIN (Character Input)
7.4.15. CHAROUT (Character Output)
7.4.16. CHARS (Characters Remaining)
7.4.17. COMPARE
7.4.18. CONDITION
7.4.19. COPIES
7.4.20. COUNTSTR
7.4.21. D2C (Decimal to Character)
7.4.22. D2X (Decimal to Hexadecimal)
7.4.23. DATATYPE
7.4.24. DATE
7.4.25. DELSTR (Delete String)
7.4.26. DELWORD (Delete Word)
7.4.27. DIGITS
7.4.28. DIRECTORY
7.4.29. ENDLOCAL (Linux only)
7.4.30. ERRORTEXT
7.4.31. FILESPEC
7.4.32. FORM
7.4.33. FORMAT
7.4.34. FUZZ
7.4.35. GC
7.4.36. INSERT
7.4.37. LASTPOS (Last Position)
7.4.38. LEFT
7.4.39. LENGTH
7.4.40. LINEIN (Line Input)
7.4.41. LINEOUT (Line Output)
7.4.42. LINES (Lines Remaining)
7.4.43. LOWER
7.4.44. MAX (Maximum)
7.4.45. MIN (Minimum)
7.4.46. OVERLAY
7.4.47. POS (Position)
7.4.48. QUALIFY
7.4.49. QUEUED
7.4.50. RANDOM
7.4.51. REVERSE
7.4.52. RIGHT
7.4.53. RXFUNCADD
7.4.54. RXFUNCDROP
7.4.55. RXFUNCQUERY
7.4.56. RXQUEUE
7.4.57. SETLOCAL (Linux only)
7.4.58. SIGN
7.4.59. SOURCELINE
7.4.60. SPACE
7.4.61. STREAM
7.4.62. STRIP
7.4.63. SUBSTR (Substring)
7.4.64. SUBWORD
7.4.65. SYMBOL
7.4.66. TIME
7.4.67. TRACE
7.4.68. TRANSLATE
7.4.69. TRUNC (Truncate)
7.4.70. UPPER
7.4.71. USERID
7.4.72. VALUE
7.4.73. VAR
7.4.74. VERIFY
7.4.75. WORD
7.4.76. WORDINDEX
7.4.77. WORDLENGTH
7.4.78. WORDPOS (Word Position)
7.4.79. WORDS
7.4.80. X2B (Hexadecimal to Binary)
7.4.81. X2C (Hexadecimal to Character)
7.4.82. X2D (Hexadecimal to Decimal)
7.4.83. XRANGE (Hexadecimal Range)

A function is an internal, built-in, or external routine that returns a single result object. (A subroutine is a function that is an internal, built-in, or external routine that might return a result and is called with the CALL instruction.)