home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 224 / 224.d81 / t.manual1 < prev    next >
Text File  |  2022-08-26  |  12KB  |  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 ent