home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 224 / 224.d81 / t.datatool < prev    next >
Text File  |  2022-08-26  |  6KB  |  195 lines

  1. u
  2.            D A T A T O O L
  3.            by Franz Kottira
  4.  
  5.  
  6. [DAVE'S FORWARD:]
  7.  
  8.     New, meaningful utilities for the
  9. C-64 are few and far between these
  10. days. Many of us have become cross-
  11. platform users, taking advantage of
  12. the huge complexities available with
  13. Windows or (better) Linux. Some of us
  14. are die hards, who have found the
  15. applications that do what they want.
  16. Why get all boggled with a new system?
  17.  
  18.     The only source of new, useful
  19. programs is that creative muse that
  20. catches a programmer and says, "You
  21. can build a better ....!" Herein,
  22. "better" means having the features,
  23. look and feel that the programmer
  24. wants, rather than yet another Windows
  25. Visual Basic slap-together. We are
  26. free to try anything, any motif or
  27. logic or style. We can continue to
  28. explore new territory and come up with
  29. unique -- and occasionally much better
  30. -- answers.
  31.  
  32.     Franz Kottira is just such a C-64
  33. kind of guy in Germany. He wanted a
  34. way to use Basic to manipulate data on
  35. a spreadsheet. So he wrote DataTool.
  36.  
  37.     This program looks and acts like
  38. most any other spreadsheet -- except
  39. the user writes out calculations in
  40. regular Basic 2.0. For example, let's
  41. say we want two columns of data, with
  42. a third column showing the sum of each
  43. row, and a line at the bottom of each
  44. column showing the sum of each column.
  45.  
  46.     Besides a place to name each
  47. column and write notes and set the
  48. data type (String or Number), each
  49. column has a cell where you assign a
  50. Basic variable for the information in
  51. that column, and a cell for the Basic
  52. manipulation to be done with each cell
  53. in the column, performed row by row.
  54.  
  55.  Col   A        B        C
  56.  Type  number   number   number
  57.  Var   av       bv       cv
  58.  Basic as=as+av bs=bs+bv cv=av+bv
  59.                          cs=cs+cv
  60.  Data  1        2
  61.  Data  31       53
  62.  Pause -----------------------
  63.  Basic av=as    bv=bs    cv=cs
  64.  Res.
  65.  
  66.  Here, AV, BV, and CV are the columns'
  67. variables. If there is data in a cell
  68. of the column, the column variable
  69. will take that data into Basic. If
  70. there is no data in the cell, or the
  71. value of the assigned variable for the
  72. column changes, the value in the
  73. current variable is displayed. So, as
  74. the first row is processed, AV=1 and
  75. BV=2. CV=1+2=3. A "3" will be
  76. displayed on Data row 1 of column C.
  77. Meanwhile, AS, BS and CS are summing
  78. up the values in each column.
  79.  
  80.  Pause lets you draw a line, and the
  81. next line is Basic again. These Basic
  82. commands will be performed as the
  83. processor gets to each cell. In this
  84. case, AV, BV, and CV receive the
  85. values in AS, BS, and CS -- since only
  86. the declared variables can be
  87. displayed. The next line, "Res." is
  88. "Result", and will, upon running the
  89. spreadsheet, display the values in AV,
  90. BV, and CV.
  91.  
  92.     This is about 80% of what you need
  93. to know to use DataTool effectively.
  94. Strings can be manipulated just as
  95. well as Numbers. You can write Basic
  96. routines to Import or Export
  97. information in nearly any desired
  98. format. And the printouts look nice.
  99. Search and Replace, Sort, and other
  100. features you expect in a full-service
  101. spreadsheet are here as well.
  102.  
  103.     We have included the documentation
  104. Franz wrote on his web page, and
  105. DataTool data files that will explain
  106. much.
  107.  
  108.     Finally, LOADSTAR hereby decrees
  109. that all native files created with
  110. DataTool shall henceforth have an
  111. extension of ".DT"! This is because
  112. Franz designed the file with a header
  113. that lets you LOAD and RUN it like a
  114. Basic program. The header LOADS
  115. DataTool (from drive 8) -- and away it
  116. goes! (Gee! Why didn't LOADSTAR think
  117. of this long ago?) Of course,
  118. DATATOOL.MAIN must be on drive 8 for
  119. this to work.
  120.  
  121.     The three programs you can LOAD
  122. and RUN from LOADSTAR are
  123.  
  124.             B.DATATOOL,
  125.             B.UNEXIT, and
  126.             B.EXAMPLE.DT.
  127.  
  128.  The first is the boot for the main
  129. program. B.UNEXIT can be used to
  130. restart DataTool without disturbing
  131. the current data in the computer. And
  132. B.EXAMPLE.DT is a DataTool datafile,
  133. which will boot DataTool and display
  134. the data.
  135.  
  136.     Enough of my blathering. Here is
  137. what Franz has to say:
  138.  
  139.  
  140.     The C64 is a very nice computer
  141. for solving trivial problems
  142. concerning calculation by yourself.
  143. Simply turn on the machine and write a
  144. little BASIC program for your needs.
  145. But if you want to provide some
  146. comfortable data editing options, the
  147. programming effort will grow
  148. considerably, and C-64 BASIC does not
  149. support such a task very well. This
  150. was why I started thinking about a
  151. program written in machine language
  152. for data management, in combination
  153. with free programmable BASIC functions
  154. for data processing. I searched for
  155. existing solutions, but couldn't find
  156. anything of this kind.
  157.  
  158.     As a hobby programmer, I write
  159. programs mainly for my own use. But
  160. this one could be useful for other
  161. C-64 users too. Well, there are not
  162. many of us around, and few will have a
  163. field of application for such a
  164. program. Anyway, it is here, it is
  165. free, and if you see a benefit, then
  166. use it!
  167.  
  168.     C64 DataTool is proper for
  169. inputting, editing and printing any
  170. kind of data in tabular form. In the
  171. simplest way of use, the program will
  172. store lists of words or numbers. Data
  173. processing (e.g. spreadsheet analysis,
  174. statistics or data conversion) can be
  175. programmed in BASIC. In the most
  176. advanced usage, Datatool is nothing
  177. but a particularly useful environment
  178. for your own BASIC programs.
  179.  
  180.  FK
  181.  
  182. [DAVE'S AFTERWORD]: You [will] want to
  183. copy Datatool to a work disk! I have
  184. made sure that the Copy It feature
  185. works correctly for this program.
  186.  
  187. And how 'bout a big hand for Franz!
  188. Where except in the C= world do you
  189. find guys and gals busting out all the
  190. stops to create genuinely quality
  191. software?
  192.  
  193.  DMM
  194.  
  195.  
  196.