home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 2: Collection B / 17Bit_Collection_B.iso / files / 1438.dms / in.adf / BASIC_HELP / help1 < prev    next >
Encoding:
Text File  |  1978-09-12  |  3.1 KB  |  106 lines

  1. ABS
  2. Finds the absolute value of a numeric variable
  3. eg/abs(x) is always a positive number
  4. AND
  5. Logical operator
  6. Both conditions must be true.
  7. eg/if x=1 AND Y=2 then PRINT "x=1 and y=2
  8. APPEND
  9. Mode of opening sequential file.
  10. The file cannot be read from, but data can be added(appended) to the end.
  11. eg/OPEN NAM$ FOR APPEND AS 1
  12. AREA
  13. Creates a side of a polygon.
  14. ie/AREA [step](x,y)
  15. A side is connected with the previous point entered.
  16. The polygon will not be visible until AREAFILL is used.
  17. AREAFILL
  18. Fills a polygon created with AREA statements with the given colour.
  19. Without this command the polygon is not visible.
  20. AS
  21. Used in conjunction with some other commands.
  22. eg/OPEN NAM$ FOR INPUT AS 1
  23. ASC
  24. REturns the ASCII value of a character.
  25. This is the opposite of CHR$.
  26. eg/a$=asc(96)
  27. ATN
  28. Finds the arctangent for the mathematically inclined.
  29. eg/a=ATN(b)
  30. BASE
  31. Used in the OPTION BASE statement.
  32. See OPTION
  33. BEEP
  34. Makes a warning sound.
  35. You have heard it when you tried moving the cursor off the screen.
  36. eg/BEEP
  37. BREAK
  38. Used with event trapping in response to the user using the CTRL-C key.
  39. combination to stop a program.
  40. eg/BREAK OFF,BREAK OFF,BREAK STOP
  41. CALL
  42. Used to invoke a subprogram.
  43. eg/CALL subprogramname
  44. The CALL is optional, only the subprogramname can be given.
  45. CDBL
  46. Converts a number to a double precision number.
  47. CHAIN
  48. Runs a new program, without closing any open files.
  49. eg/CHAIN programname
  50. CHDIR
  51. Changes the current directory.
  52. Follow with a new directory name, eg/df0: df1: ram: etc.
  53. eg/CHDIR "df1:"
  54. CHR$
  55. Returns the character with the given ASCII value.
  56. Is the opposite to ASC.
  57. eg/x=chr$(96)
  58. CINT
  59. Rounds a number off to an integer.
  60. eg/cint(2.5) would equal 2.
  61. CIRCLE
  62. Draws a circle with the centre at x,y and with a radius of r.
  63. Options are to add aspect(height to width ratio).
  64. CLEAR
  65. Increases available memory by setting all variables to 0 or "".
  66. CLNG
  67. Converts a number to a long integer.
  68. CLOSE
  69. Closes all files.
  70. alternatively, you can close one specific file by giving a file number.
  71. (The number the file was opened as)>.
  72. eg/CLOSE 1  only closes the file which was opened as 1.
  73. The file is not written to the disk until CLOSE is used.
  74. CLS
  75. Clears the current window and places the cursor in the top left hand corner.
  76. COLLISION
  77. Used when an object(bob or sprite) collides with another object or the edge
  78. of the screen.
  79. eg/ON COLLISION GOSUB label
  80. COLOR
  81. Sets the current background and foreground colours.
  82. eg/COLOR 3,1 will mean that graphics and text will be drawn in COLOR 3 on a
  83. background with the COLOR 1. (Colours can be altered with PALETTE).
  84. COMMON
  85. Used in conjunction with the CHAIN statement.
  86. Allows variables to be shared between the chaining program and the chained
  87. program.
  88. eg/CHAIN program2
  89.    COMMON x
  90. CONT
  91. Continues a program that has been stopped with the STOP statement.
  92. A menu item performs the same function.
  93. COS
  94. Calcualtes the COSine of a number.
  95. CSNG
  96. Converts a number to a single precision number.
  97. CSRLIN
  98. Finds the current line of the cursor.
  99. Used in conjunction with pos(x) the exact position of the cursor can be
  100. found.
  101. CVD
  102. Converts random file numeric (4 byte)string values to numeric values.
  103. CVS
  104. Converts random file numeric (8 byte)string values to numeric values.
  105.  
  106.