home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / ba01c2.do < prev    next >
Text File  |  2006-10-19  |  5KB  |  191 lines

  1.  
  2. Title: BASIC KEYWORDS II
  3.  
  4.  
  5. LEFT$(stringexpression,length)
  6.  Returns the length characters of stringexpression. 
  7.  
  8.  
  9. LEN(stringexpression)
  10.  Returns the number of characters in stringexpression. 
  11.  
  12.  
  13. LETvariable=expression
  14.  Assign value of expression to variable.  Variable must be of the same data 
  15.  type as expression (that is, numeric or string).  The word LET is optional. 
  16.  
  17.  
  18. LOG(numericexpression)
  19.  Returns the natural logarithm (base "e") of numericexpression.  
  20.  Numericexpression must be greater than zero. 
  21.  
  22.  
  23. MENU
  24.  Exits BASIC and returns you to the Model 100 menu.  Closes any open files. 
  25.  
  26.  
  27. MID$(stringexpression,position,length)
  28.  Returns length characters from stringexpression starting at position. 
  29.  
  30.  
  31. MID$(stringexpression1,position,length)=stringexpression2
  32.  Replaces characters of stringexpression1 starting at position with 
  33.  stringexpression2.  Length and position are numeric expressions.  Length is 
  34.  optional and if present is ignored. 
  35.  
  36.  
  37. NEW
  38.  Erases the current program, sets numeric variables equal to zero, and sets 
  39.  string variables equal to null. 
  40.  
  41.  
  42. ONERRORGOTOlinenumber
  43.  Defines an error trapping interrupt. 
  44.  
  45.  
  46. ONTIME$="time"GOSUBlinenumber
  47.  Defines an interrupt for a clock condition.  Time is a string expression in 
  48.  the form HH:MM:SS. 
  49.  
  50.  
  51. ONnumericexpressionGOTOlinenumberlist
  52.  Evaluates numericexpression to an integer n, and then branches to the nth 
  53.  linenumber in the list. 
  54.  
  55.  
  56. ONnumericexpressionGOSUBlinenumberlist
  57.  Evaluates numericexpression to an integer n, and then calls the subroutine 
  58.  beginning at the nth linenumber in the list. 
  59.  
  60.  
  61. OUTportnumber,bytevalue
  62.  Output bytevalue to the CPU portnumber. 
  63.  
  64.  
  65. PEEK(memoryaddress)
  66.  Returns the byte value stored at memoryaddress. 
  67.  
  68.  
  69. POKEmemoryaddress,bytevalue
  70.  Loads memoryaddress with bytevalue. 
  71.  
  72.  
  73. POWER(numericexpression)
  74.  Sets the automatic power-down period.  Numericexpression has a range of 10 to 
  75.  255.  The Model 100 will automatically turn off after a period of 
  76.  numericexpression times 0.1 minutes if you are neither running a program nor 
  77.  entering commands. 
  78.  
  79.  
  80. POWERCONT
  81.  Disables the automatic power down feature of the Model 100. 
  82.  
  83.  
  84. POWEROFF, RESUME
  85.  Turns off the power to the Model 100 immediately.  If RESUME is present, upon 
  86.  turning the power back on, the Model 100 resumes execution of the program at 
  87.  the statement following the POWEROFF.  RESUME, if not present, then the Model 
  88.  100 returns to the menu upon power up. 
  89.  
  90.  
  91. READvariablelist
  92.  Reads an appropriate number of values from a DATA statement and stores the 
  93.  values in the variables of variablelist. 
  94.  
  95.  
  96. REMcommentstatement
  97.  Signifies to the BASIC interpreter that the reminder of the line as comment.  
  98.  You may abbreviate REM with an apostrophe. 
  99.  
  100.  
  101. RESTORElinenumber
  102.  Resets the DATA statement pointer to the first item in the DATA statements on 
  103.  linenumber so that a READ command can access the same values more than once. 
  104.  
  105.  
  106. RESUMElinenumber
  107.  Ends an error handling routine by branching to linenumber where BASIC begins 
  108.  normal execution.  If linenumber is null or 0, then BASIC returns to the 
  109.  line which caused the error. 
  110.  
  111.  
  112. RETURN
  113.  Ends a subroutine by branching back to the command immediately following the 
  114.  corresponding GOSUB. 
  115.  
  116.  
  117. RIGHT$(stringexpression,length)
  118.  Returns the right most length characters of stringexpression. 
  119.  
  120.  
  121. RND(numericexpression)
  122.  Returns a pseudo-random number between 0 and 1.  If numericexpression is 
  123.  non-zero, then RND returns a new random number.  If numericexpression equals 
  124.  0, then RND returns the last random number generated. 
  125.  
  126.  
  127. RUNlinenumber
  128.  Clears all variables and executes the current program starting at the 
  129.  linenumber, which is optional.  If linenumber is omitted, BASIC begins 
  130.  execution at the first line of the program. 
  131.  
  132.  
  133. SGN(numericexpression)
  134.  Returns a -1 for negative 0 for zero, and 1 for positive values of 
  135.  numericexpression. 
  136.  
  137.  
  138. SIN(numericexpression)
  139.  Returns the trigonometric sine of numericexpression.  The numericexpression 
  140.  must be in radians. 
  141.  
  142.  
  143. SPACE$
  144.  Returns a string of length spaces. 
  145.  
  146.  
  147. SQR(numericexpression)
  148.  Returns the square root of numericexpression. 
  149.  
  150.  
  151. STOP
  152.  Stops execution of a BASIC program at some point other than the physical end. 
  153.  
  154.  
  155. STR$(numericexpression)
  156.  Converts numeric expression to its stringrepresentation. 
  157.  
  158.  
  159. STRING$(length,character)
  160.  Returns a string of the given length composed of character.  Length may range 
  161.  from 0 to 155, character is either a string expression or numeric expression. 
  162.  If it is a string expression, only the first character of the string is 
  163.  duplicated.  If it is a numeric expression, it must evaluate to a number 
  164.  between 0 and 255. 
  165.  
  166.  
  167. TAN(numericexpression)
  168.  Returns the tangent of numericexpression, which must be expressed in 
  169.  radians. 
  170.  
  171.  
  172. TIMES$
  173.  Keeps track of the current time, in the form of a string variable.  You may 
  174.  access it like any string variable. 
  175.  
  176.  
  177. TIMEONorOFForSTOP
  178.  Enables or disables ON TIME$ interrupting. 
  179.  
  180.  
  181. VAL(stringexpression)
  182.  Converts stringexpression to a numeric representation of the string.  If 
  183.  stringexpression contains non-numeric characters, VAL returns only the value 
  184.  of the leading number, if any. 
  185.  
  186.  
  187. VARPTR(variablename)
  188.  Returns the memory address of variablename.
  189.  
  190. <EOF>
  191.