home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 224 / 224.d81 / t.manual1 < prev    next >
Encoding:
Text File  |  2003-01-01  |  11.5 KB  |  401 lines

  1. u
  2.     D A T A T O O L   M A N U A L
  3.            by Franz Kottira
  4.  
  5.  
  6.     The program is pretty much
  7. self-explanitory. There is a main menu
  8. shown at the top. Select an item,
  9. either by using the cursor keys and
  10. RETURN, or by using the f-keys. You
  11. then will see a table-like user
  12. interface. Enter a cell by pushing
  13. RETURN. In order to store an entry,
  14. push RETURN again. In almost any case
  15. the CTRL-key calls a topical help
  16. screen, showing present options and
  17. keyboard commands.
  18.  
  19.     To step back one level, e.g. to
  20. cancel an input, use the <BACK-ARROW>
  21. key. If you want to stop a running
  22. process, try the <STOP> key. This will
  23. suspend BASIC execution, device
  24. access, printing and some time
  25. consuming tasks. If you suspect the
  26. program has hung, you can use
  27. <STOP-RESTORE>. This usually resets
  28. the program.
  29.  
  30.     During operations that require a
  31. rebuilding of the worksheet structure,
  32. the reset is locked because a
  33. disruption of this process would leave
  34. an invalid constitution. You may
  35. overcome this lock by hitting RESTORE
  36. three or more times - on the risk of
  37. losing all your data.
  38.  
  39.  
  40. VIEW AND EDIT THE WORKSHEET
  41.  
  42. Column settings:
  43.  At the top the worksheet there are a
  44.   few items to adjust:
  45.  
  46.  Headline and Comment are informative.
  47.  
  48.  A Column is marked with a capital
  49.   letter, ranging from A to Z, which
  50.   means 26 available columns. The
  51.   letter itself is fixed, but you can
  52.   shift, clear, cut or insert the
  53.   content of a column (see later).
  54.  
  55.  The Column Title is informative.
  56.  
  57.  The Printable cell determines whether
  58.   a column is part of the outprint or
  59.   not.
  60.  
  61.  The Type cell allows selection of
  62.   Text or Number. This selection
  63.   determines the way the data in the
  64.   column is treated by BASIC: string
  65.   characters or numeric values. You
  66.   must choose the type before entering
  67.   any data. After choosing the Column
  68.   Type, you will need to use some
  69.   BASIC like val() or str$() for data
  70.   conversion.
  71.  
  72.  Layout sets the data presentation.
  73.   This concerns firstly alignment
  74.   (left, center or right), and
  75.   secondly the decimal format of
  76.   numbers (0,1 or 2 fixed decimal
  77.   places). This has no effect on
  78.   storage format and numeric accuracy,
  79.   therefore the layout of a column can
  80.   be changed any time.
  81.  
  82.  Column Width is counted in
  83.   characters, with a range from 6 to
  84.   35. If an entry is longer then the
  85.   column width, it simply will break
  86.   into another line inside the cell.
  87.  
  88.  The Variable cell links the content
  89.   of the data-cells to a BASIC
  90.   variable used by BASIC to read and
  91.   to store data from and into the
  92.   worksheet. The variable type
  93.   (numeric or string) is determined by
  94.   the column type. The variable name
  95.   consists of one or two characters,
  96.   as usual in C64 BASIC.
  97.  
  98.  Finally, the BASIC cell allows you to
  99.   store some BASIC code that will be
  100.   executed for each of the data-rows.
  101.   Please note, the system uses the
  102.   lower-case character set, and
  103.   therefore all program statements
  104.   must to be written in small letters.
  105.   The syntax is the same as within C64
  106.   BASIC. A single BASIC Line has a
  107.   maximum length of 80 characters; you
  108.   may string several commands using
  109.   the colon. The memory limitation is
  110.   about 1000 characters each BASIC
  111.   cell.
  112.  
  113.  Because the RETURN key is assigned to
  114. store the cell, you have to use
  115. <Shift-RETURN> to start a new line.
  116. Although the code is in fact a
  117. programm, you needn't number the
  118. lines, because they will be numbered
  119. automatically when handing them over
  120. to the BASIC Interpreter. If you use
  121. GOTO or GOSUB statements, you will
  122. have to number them by yourself, of
  123. course.
  124.  
  125.  BASIC instructions, stored in several
  126. cells share one memory for variables.
  127. For example, a variable used in column
  128. A can also be accessed in column C.
  129. But the program code is stored in
  130. different memory segments, therefore
  131. it isn't possible to jump from one
  132. BASIC-cell to another, e.g. BASIC in
  133. column B cannot call a subroutine
  134. stored in column A. Because column
  135. BASIC has access to all variables, it
  136. actually doesn't matter in which
  137. columns the commands are stored,
  138. except that they are called one after
  139. another, starting with column A.
  140.  
  141.  The main principle is that the BASIC
  142. code is executed in every single
  143. data-row. Before executing it, the
  144. content of the data-cell is delivered
  145. to the specified variable. After
  146. executing the code, the (changed or
  147. unchanged) content of the variable is
  148. stored in the data-cell again. That
  149. means that the column BASIC code has
  150. no random access to all data. It just
  151. processes the data row by row. It
  152. doesn't even have access to a row
  153. number, unless you set up a counter in
  154. BASIC by yourself.
  155.  
  156.  Example: Let's suppose you want to
  157. enter some numeric data in column A,
  158. in order to calculate the square root
  159. of these data in column B. First, set
  160. both columns to numeric type and enter
  161. the data in column A. Then assign a
  162. variable name to column A, for
  163. instance, variable [x], and another
  164. one to column B, call it [y]. Then you
  165. enter the BASIC statement y=sqr(x).
  166. When running the program code, the
  167. content of the data in Column A will
  168. be delivered to variable x, the BASIC
  169. command will be executed, and the
  170. content of variable y will be stored
  171. into column B. This happens row by
  172. row.
  173.  
  174. [NOTE]: The Run It for this file is
  175. the DT file as described, but has not
  176. yet been RUN. Press <R> -- the DT file
  177. and DataTool will be loaded. Press
  178. <F1> to see the List, then <F2> to Run
  179. the sheet. <F8> gives you a number of
  180. options, the last being Exit. DataTool
  181. does not return to LOADSTAR.
  182.  
  183.  
  184. ROW SETTINGS:
  185.  
  186.  At the left of each row there is a
  187. number, ranging from 001 to 999. Due
  188. to the memory restriction you will not
  189. be able to fill all 26 columns and 999
  190. rows with data, but a worksheet
  191. with 3 numeric columns and 999 rows
  192. would be possible with reduced BASIC
  193. memory.
  194.  
  195.  Next to the row number there is a
  196. cell that allows you to change the row
  197. type.
  198.  
  199.  Data is the default row type. The
  200. content of data-rows will be linked to
  201. a BASIC variable, as far as there is
  202. one defined in the column setting. A
  203. data-cell can contain up to 255
  204. characters if the column is set to
  205. Text type, or one numeric value when
  206. set to Number. Characters are limited
  207. to the printable range, control
  208. characters are excluded. Numbers are
  209. stored in the same way as the C64
  210. stores full numeric variables, not
  211. more and not less exactly, and with
  212. the same limitation of range.
  213.  
  214.  A nice feature for inputing numbers
  215. is that you can do any kind of
  216. immediate calculation during the
  217. input: E.g. if you enter 1+2*3, the
  218. system calculates the result of 7 and
  219. stores it. The syntax is the same as
  220. within the regular C64 BASIC
  221. interpreter - which in fact does the
  222. job.
  223.  
  224.  Label rows can be used for inserting
  225. subheadings or explanations. These
  226. rows are ignored by BASIC, but they
  227. will be printed.
  228.  
  229.  Pause rows allows to insert a text
  230. across the column boundary, up to 86
  231. characters of length.
  232.  
  233.  BASIC rows work similar to the BASIC
  234. in the column setting, with the very
  235. important difference: this code is
  236. executed only when the row is reached
  237. during the run.
  238.  
  239.  Res(ult) rows are similar to data
  240. rows, but they will only store the
  241. present value of an assigned variable
  242. into the worksheet. This makes sense
  243. in combination with row BASIC, in
  244. order to show the results.
  245.  
  246.  Example: in addition to the example
  247. above, we want to calculate the sum
  248. and the average of the data in column
  249. A and B. Because the variables x and y
  250. are used to read and to store the
  251. data, we need different variables to
  252. collect the sum, e.g. xs and ys. And
  253. because BASIC has no direct access to
  254. the number of rows in the worksheet,
  255. we need a counter for that. We'll call
  256. it variable n. The summation has to be
  257. done each data-row, therefore we add
  258. this task to the column BASIC, which
  259. is executed row by row. In order to
  260. show the sum, we have to transfer it
  261. to the assigned column variables, x
  262. and y in this case, and to provide a
  263. result-row. To calculate and show the
  264. average, we furthermore have to divide
  265. by the value of the counter n.
  266.  
  267. [NOTE]: Again, this is included in the
  268. Run It file.
  269.  
  270.  
  271.  Please also take note of the remarks
  272. on running the worksheet, describing
  273. what actually happens during a run.
  274.  
  275.  
  276. EDITING THE WORKSHEET -
  277.   BUFFER OPERATIONS:
  278.  
  279.  Generally, there are two different
  280. modes: if you enter the worksheet
  281. through the main menu, the cursor
  282. moves from one cell to another, and
  283. the whole cell flashes. We'll call it
  284. outline mode. If you enter a cell by
  285. pressing RETURN, the cursor moves from
  286. one character to another, and only the
  287. character in the cursor position
  288. flashes. We'll call it input mode.
  289.  
  290.  Inputing and editing text in input
  291. mode is very similar to the way the
  292. C64 screen editor works, except that
  293. the repeat function is switched on for
  294. all keys. Additionally there is a
  295. little character buffer. If you DELete
  296. a character, which moves the cursor
  297. backwards, the deleted character is
  298. saved to a buffer. A number of
  299. character (up to 250) will be saved,
  300. as long as they are deleted
  301. continuously. To insert the deleted
  302. characters press C= DEL. This also
  303. allows an undo of the last deletion if
  304. the cursor is in the same cell.
  305.  
  306.  "Continuously" means that you are not
  307. allowed to use any other key besides
  308. <DEL>. Example: If you delete the
  309. characters "abc", move the cursor and
  310. delete "xyz" from another place, then
  311. the "abc" is lost, and the buffer
  312. contains only "xyz".
  313.  
  314.  If you want to copy some text part
  315. into the character buffer without
  316. deleting it, use <C=-HOME>, which
  317. like the <DEL> key moves the
  318. cursor backwards - you have to start
  319. at the end of the part you want to
  320. copy.
  321.  
  322.  And in case you want to delete some
  323. text without destroying the content of
  324. the buffer, use CLR (<Shift-HOME>).
  325. This acts like the <DEL> key, but
  326. without feeding the buffer.
  327. <Shift-DEL> will insert a single
  328. space, which has no effect on the
  329. character buffer.
  330.  
  331.  In outline mode there is a another
  332. buffer available. It contains whole
  333. cells, columns or rows. If you want to
  334. delete a single cell, move the cursor
  335. to it and press <DEL>. This will clear
  336. the cell, and save the entry to the
  337. cell buffer. Similar as described
  338. above, <C=-DEL> will insert an entry
  339. from buffer, <C=-HOME> will copy
  340. without deleting, and <CLR> will
  341. delete without copying. In the same
  342. way you can delete, copy and clear a
  343. whole row or a column. Move the cursor
  344. to the cell which contains the column
  345. letter or the row number. When you
  346. delete a column or a row, the
  347. following columns or rows will move,
  348. in order to close the blank. You can
  349. insert empty columns or rows using
  350. <Shift-DEL>
  351.  
  352. [PLEASE NOTE]: <DEL> in outline mode
  353. affects the column or row in which the
  354. cursor is situated, which is slightly
  355. different from the way it works in
  356. input mode. And please take into
  357. consideration that buffer operations
  358. in outline mode imply a few
  359. restrictions. First, the buffer can
  360. hold only one item, e.g. a single
  361. cell, a row or a column, and can only
  362. copy into the worksheet if the
  363. destination has the same format.
  364.  
  365.  Example: It is not possible to copy a
  366. numeric data cell via buffer to a text
  367. data cell. And if you want to copy a
  368. numeric column into an empty column,
  369. you must set the type of the empty
  370. column to number before copying.
  371.  
  372.  Secondly copying rows or columns will
  373. overwrite the destination cells only
  374. if the source cells in the buffer are
  375. filled. Consequently you can merge
  376. partly filled rows or columns. If this
  377. effect is undesired, and if the
  378. destination isn't empty anyway, a row
  379. or column should be cleared before
  380. pasting. Finally, be prepared that
  381. operations concerning columns or rows
  382. may require quite some time if the
  383. worksheet is large.
  384.  
  385.  
  386.  There are a few useful key
  387. combinations:
  388.  
  389.      <C=-CRSR Right>,
  390.      <C=-CRSR Down>, and
  391.      <C=-RETURN>.
  392.  
  393. The topical help pages of the program,
  394. called by pressing <CTRL>, will tell
  395. more about these. The usage differs in
  396. outline-mode and in input-mode.
  397.  
  398.  FK
  399.  
  400.             [There's MORE!]
  401.  
  402.