home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 2: Collection B / 17Bit_Collection_B.iso / files / 1438.dms / in.adf / BASIC_HELP / help9 < prev    next >
Encoding:
Text File  |  1978-02-11  |  9.5 KB  |  445 lines

  1. ABS
  2. Finds the absolute value of a numeric variable
  3. eg/abs(x)
  4. ALL
  5. AND
  6. Logical operator
  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. Draws a line between 2 points
  14. eg/AREA
  15. AREAFILL
  16. Fills a polygon drawn with AREA statements with the given colour
  17. eg/
  18. AS
  19. Used in conjunction with some other commands
  20. eg/OPEN NAM$ FOR INPUT AS 1
  21. ASC
  22. REturns the ASCII value of a character
  23. This is the opposite of CHR$
  24. eg/a$=asc(96)
  25. ATN
  26. Finds the tangent
  27. BASE
  28. Used in the OPTION BASE statement
  29. See OPTION
  30. BEEP
  31. Makes a warning sound
  32. eg/BEEP
  33. BREAK
  34. Used with event trapping in response to the user using the CTRL-C key
  35. combination to stop a program
  36. eg/
  37. CALL
  38. Used to invoke a subprogram
  39. eg/CALL subprogramname
  40. CDBL
  41. Converts a?
  42. CHAIN
  43. Runs a new program, without closing any open files
  44. eg/CHAIN programname
  45. CHDIR
  46. Changes the current directory
  47. Follow with a new directory name, eg/df0: df1: ram: etc.
  48. eg/CHDIR "df1:"
  49. CHR$
  50. Returns the character with the given ASCII value
  51. Is the opposite to ASC
  52. eg/x=chr$(96)
  53. CINT
  54. Rounds a number off to an integer
  55. eg/cint(2.5) would equal
  56. CIRCLE
  57. Draws a circle with the centre at x,y and with a radius of r
  58. Options are to add aspect(height to width ratio)
  59. CLEAR
  60. Increases available memory by setting all variables to 0 or ""
  61. CLNG
  62. Converts a number to a long integer
  63. CLOSE
  64. Closes all files
  65. alternatively, you can close one specific file by giving a file number
  66. (The number the file was opened as)>
  67. eg/CLOSE 1
  68. CLS
  69. Clears the current window and places the cursor in the top left hand corner
  70. COLLISION
  71. Used when an object(bob or sprite) collides with another object or the edge
  72. of the screen
  73. eg/ON COLLISION GOSUB label
  74. COLOR
  75. Sets the current background and foreground colours
  76. eg/COLOR 3,1 will mean that graphics and text will be drawn in COLOR 3 on a
  77. background with the COLOR 1. (Colours can be altered with PALETTE).
  78. COMMON
  79. Used in conjunction with the CHAIN statement
  80. Allows variables to be shared between the chaining program and the chained
  81. program
  82. eg/CHAIN program2
  83.    COMMON x
  84. CONT
  85. Continues a program that has been stopped with the STOP statement
  86. A menu item performs the same function
  87. A menu item performs the same function
  88. COS
  89. Calcualtes the COS of a number
  90. CSNG
  91. CSRLIN
  92. Finds the current line of the cursor
  93. CVD
  94. Converts
  95. CVS
  96. Converts
  97. DATA
  98. Creates date items
  99. DATE$
  100. calculates the curent date
  101. DECLARE
  102. Used with LIBRARY
  103. DEF
  104. defines
  105. DEFDBL
  106. defines
  107. DEFINT
  108. defines
  109. DEFLNG
  110. defines
  111. DEFSNG
  112. defines
  113. DEFSTR
  114. defines
  115. DELETE
  116. DEletes all the lines between
  117. DIM
  118. Dimensions(i.e. creates) an array
  119. ELSE
  120. Used in conjunction with the CHAIN statement
  121. ELSEIF
  122. Used in conjunction with the CHAIN statement
  123. END
  124. Ends a program(optional)
  125. EOF
  126. End of file
  127. EQV
  128. Logical operator, equivalent to
  129. ERASE
  130. Deletes an array which can later be redimensioned
  131. ERL
  132. Used in conjunction with the CHAIN statement
  133. ERR
  134. Used in conjunction with the CHAIN statement
  135. ERROR
  136. Used in conjunction with the CHAIN statement
  137. EXIT
  138. Leaves a subprogram
  139. EXP
  140. Exponential of a number
  141. FIELD
  142. Used in conjunction with random files
  143. FILES
  144. Displays the files on the disk
  145. FIX
  146. Rounds off a number
  147. FN
  148. create your own function
  149. FOR
  150. A loop
  151. FRE
  152. Calculates th eamount of free memory in bytes
  153. FUNCTION
  154. Used with
  155. GET
  156. Stores a graphic in an array which can later be reused with PUT
  157. GOSUB
  158. Performs the given subroutine then returns to the line after the GOSUB
  159. GOTO
  160. Branches to aline or label
  161. HEX$
  162. calculates hexadecimal number
  163. IF
  164. Conditiob\nal
  165. IMP
  166. LOgical operator. implies
  167. INKEY$
  168. Waits for the user to press a key
  169. INPUT
  170. Asks the user to type in soimething at the keyboard(and press return)
  171. INPUT$
  172. Reads characters from a tsring
  173. INSTR
  174. Searchs for a string within a string
  175. INT
  176. Rounds off a number to form an integer
  177. KILL
  178. Delates a file and its info.file
  179. eg/KILL "filename"
  180. LBOUND
  181. Finds the lower boundary of an array
  182. Useful when using arrays in a subprogram
  183. LEFT$
  184. This returns the left most portion of a string
  185. eg/LEFT$("house",1) would be "h"
  186. LEN
  187. Calculates the length of a string
  188. eg/LEN("house") would be 5
  189. LET
  190. Assigns a value to a string or numeric variable
  191. Normally the word LET is omitted
  192. LIBRARY
  193. Used to access libraries
  194. LINE
  195. Draws a line from point x1,y1 to x2,y2
  196. Can be used a draw a rectangle(which may be coloured in)
  197. LIST
  198. A menu item performs the same function
  199. Probably most useful when used in direct mode
  200. LLIST
  201. Prints the listing of a program on the printer
  202. LOAD
  203. A menu item performs the same function
  204. Probably most useful when used in direct mode
  205. LOC
  206. Location within a file
  207. LOCATE
  208. This moves the cursor to the position you want
  209. LOF
  210. REturns the length of a file in bytes
  211. LOG
  212. Finds the log of a nmber
  213. LPOS
  214. Same as POS, but is in relation to the printer
  215. LPRINT
  216. Prints a line on the printer
  217. LSET
  218. Used in conjunction with the
  219. MENU
  220. Allows the creation of menus
  221. MERGE
  222. Joins a program that has been saved in ASCII format
  223. Probably most useful when used in direct mode
  224. MID$
  225. This returns the middle of a string
  226. You can set the starting position of the string and its length
  227. eg/MID$("house",3,1) would be "u"
  228. MKD$
  229. Makes decimal
  230. MOD
  231. MOdulo arithmatic
  232. MOUSE
  233. Returns information about the mouse
  234. NAME
  235. Renames a file to the new name
  236. NEW
  237. A menu item performs the same function
  238. NEXT
  239. Used in conjunction with the
  240. NOT
  241. OBJECT.AX
  242. object
  243. OBJECT.AY
  244. object
  245. OBJECT.CLIP
  246. object
  247. OBJECT.CLOSE
  248. object
  249. OBJECT.HIT
  250. object
  251. OBJECT.OFF
  252. object
  253. OBJECT.ON
  254. object
  255. OBJECT.PLANES
  256. object
  257. OBJECT.PRIORITY
  258. object
  259. OBJECT.SHAPE
  260. object
  261. OBJECT.START
  262. object
  263. OBJECT.STOP
  264. object
  265. OBJECT.VX
  266. object
  267. OBJECT.VY
  268. object
  269. OBJECT.X
  270. object
  271. OBJECT.Y
  272. object
  273. OCT$
  274. Octal number
  275. OFF
  276. Used in conjunction with the
  277. ON
  278. Used in conjunction with the
  279. OPEN
  280. A menu item performs the same function
  281. OR
  282. OUTPUT
  283. Used in conjunction with the
  284. PAINT
  285. paints the given colour starting at the point x,y until reaching the same
  286. colour or the edges of the window
  287. PALETTE
  288. Alters the composition of the given colour
  289. PEEK
  290. Looks into the given address
  291. PEEKL
  292. ?
  293. POINT
  294. Returns the colour of the pixel at the point x,y
  295. POKE
  296. Writes into the givenaddress
  297. POKEL
  298. ?
  299. POS
  300. Fiunds the current column of the cursor
  301. PRESET
  302. Inverts colours in PUT command
  303. PRINT
  304. prints text to the screen
  305. PSET
  306. puts graphic to scren normally
  307. PTAB
  308. Moves cursor along x number of pixels
  309. PUT
  310. places a graphoic onthe screen with has ben previously been stored with the
  311. GET statement
  312. RANDOMIZE
  313. Reseeds the random number generator
  314. READ
  315. Reads the next data item
  316. REM
  317. Inserts a remark
  318. RESTORE
  319. Used in conjunction with the READ statement
  320. RESUME
  321. Used in conjunction with error trapping
  322. RETURN
  323. Used in conjunction with the GOSUB statement
  324. RIGHT$
  325. This returns the right most portion of a string
  326. eg/RIGHT$("house",1) would be "e"
  327. RND
  328. this generates a random number between 0 and .1
  329. RSET
  330. Used in conjunction with random files
  331. This right justifies the field
  332. RUN
  333. A menu item performs the same function
  334. Probably most useful when used in direct mode
  335. SADD
  336. Used to access machine subroutines
  337. SAVE
  338. A menu item performs the same function
  339. SAY
  340. Used in conjunction with TRANSLATES
  341. Allows the Amiga to talk
  342. SCREEN
  343. Allows the creation of a custom screen
  344. You can have up to 4 screens in addition to the original screen
  345. eg/screen 1,640,256,3,2 createsScreen number 1 with a width of 640 pixels, a
  346. height of 256 pixels, 3 bitplanes(allowing 8 colours) and medium resolution
  347. SCROLL
  348. Moves a rectangular segment of the screen in any direction you like
  349. eg/SCROLL(x1,y1)-(x2,y2)
  350. SGN
  351. Sets the sign of a number
  352. SHARED
  353. Used in conjunction with DIM
  354. Allows an array to be shared with a subprogram
  355. SIN
  356. Finds the SIN of a number
  357. eg/sin
  358. SLEEP
  359. Causes the program to stop until the user presses a key or clicks a mouse
  360. button
  361. SOUND
  362. Used to create sounds
  363. SPACE$
  364. Prints blank spaces
  365. Useful for overwriting text
  366. SPC
  367. Prints spaces
  368. SQR
  369. Finds the square root of a number
  370. STATIC
  371. Used in conjunction with the SUB command
  372. Denotes the beginning of a Subprogram
  373. eg/SUB.subprogramname..STATIC
  374. STEP
  375. Used in conjunction with a number of different statements
  376. eg/LINE,CIRCLE,AREA,PAINT
  377. Means to the new co-ordinate is relative to the last
  378. eg/
  379. STICK
  380. Used when a joystick is being used
  381. STOP
  382. Stops the program, but does not end it, it can be restarted with CONT
  383. A menu item performs the same function
  384. STR$
  385. Changes a number into a string and creates a leading space
  386. eg/STR$(2) would equal " 2"
  387. STRIG
  388. Used when a joystick is being used
  389. REturns a value to check whether the trigger is currently being pressed
  390. STRINGS
  391. REpeats the printing of a specific character
  392. SUB
  393. Used in conjunction with the STATIC statement
  394. SWAP
  395. Chnges the values of two variables
  396. SYSTEM
  397. Ends the program and returns to the workbench
  398. TAB
  399. Moves the next print position 
  400. TAN
  401. Calculates the tangent of a number
  402. THEN
  403. Used in conjunction with the IF statement
  404. TIME$
  405. Calculkates the current time in the format hh:mm:ss
  406. TIMER
  407. Shows the number of seconds that have passed since midnight
  408. TO
  409. Used in conjunction with the
  410. TRANSLATES
  411. Used in conjunction with the SAY statement
  412. TROFF
  413. A menu item performs the same function
  414. TRON
  415. A menu item performs the same function
  416. UBOUND
  417. Finds the upper boundary of an array
  418. Useful when using arrays in a subprogram
  419. UCASE$
  420. Converts a string to uppercase
  421. USING
  422. Part of the PRINT USING statement
  423. eg/PRINT USING
  424. VAL
  425. Converts a string into a variable
  426. eg/VAL("6") would return 6   VAL("a") would return 0
  427. VARPTR
  428. Used with acessing machine language subroutines
  429. WAIT
  430. Used in conjunction with the SOUND statement
  431. WAVE
  432. Used in conjunction with the SOUND statement
  433. WEND
  434. Used in conjunction with the WHILE statement
  435. Closes the loop
  436. WHILE
  437. Used in conjunction with the WEND statement  Starts the loop
  438. WIDTH
  439. Sets the width of text that will be printed to the screen
  440. WINDOW
  441. Creates a custom window
  442. XOR
  443. Logical operator, mutually exclusive
  444.  
  445.