home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG031.ARK / TBASIC.11 < prev    next >
Text File  |  1984-04-29  |  2KB  |  59 lines

  1. INP(<numeric expression>)
  2. Performs a read from the input port <numeric expression>.
  3. Returns the value of the input port <numeric expression>.
  4.  
  5. INT(<numeric expression>)
  6. Returns the largest integer which is less than or equal to
  7. <numeric expression>.  Examples:  INT(-3.5)  INT(0)  INT(3.14159)
  8.  
  9. LEFT$(<string expression>,<numeric expression>)
  10. Returns the leftmost <numeric expression> characters of 
  11. <string expression>.  Examples:  LEFT$(ANS$,3)    LEFT$(A$+B$,N-M)
  12.  
  13. LEN(<string expression>)
  14. Returns the length of <string expression>.
  15. Examples:  LEN(A$+B$)    LEN(ALPHABET$)    LEN("ABC"+STRING$)
  16.  
  17. * LOC(<variable name>)
  18. Returns the decimal address of the location in memory
  19. of the variable's value.  Useful for passing addresses
  20. to routines which are accessed via the CALL function.
  21. Examples:  LOC(ARRAY$(N))   LOC(N)   LOC(A$)
  22.  
  23. LOG(<numeric expression>)
  24. Returns the natural logarithm (base e) of <numeric expression>.
  25. Examples:  LOG(1)    LOG(X^2 +Y/5)    LOG(.5*SIN(X+Y))
  26.  
  27. * MATCH(<string expression>,<string expression>,numeric expression>)
  28. Returns the position of the first occurance of the first string
  29. expression in the second string expression, starting with the
  30. character position indicated by the numeric expression.  A
  31. zero will be returned if no match is found.  The following pattern
  32. matching features are implemented:
  33.  
  34.     1)  A pound sign(#) will match any digit (0-9).
  35.     2)  An exclamation mark (!) will match any upper
  36.     or lower case letter.
  37.     3)  A question mark (?) will match any character.
  38. Examples:  MATCH("DEF","ABCDEFGHIJ",1)   (returns 4)
  39.        MATCH(PATTERN$,OBJECT$,START)
  40.  
  41. MID$(<string expression>,<numeric expression>[,<numeric expression>])
  42. Without the optional second numeric expression, returns rightmost
  43. characters of <string expression> starting with the first
  44. <numeric expression>.  With the second numeric expression, returns
  45. a string whose length is determined by the second numeric expression,
  46. starting with the character of <string expression> whose position
  47. is determined by the first numeric expression.
  48. Examples:  MID$(A$,5)    MID$(STRING$,POSITION,LENGTH)
  49.  
  50.  
  51.  
  52.  
  53.  
  54.                10
  55.  
  56.  
  57.  
  58.  
  59.