home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / bus / tally.do < prev    next >
Text File  |  2006-10-19  |  16KB  |  415 lines

  1.   CLUB 100 Library - 415/939-1246 BBS,    937-5039 NEWSLETTER, 932-8856 VOICE
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                   USER'S GUIDE
  9.                                     TALLY5.BA
  10.                            NUMERIC DATA ENTRY PROGRAM
  11.                             FOR THE TRS-80 MODEL 100
  12.                                 PORTABLE COMPUTER
  13.                                  9 November 1987
  14.  
  15.  
  16.  
  17.  
  18.                                 WILLIAM G. VOIGT
  19.                          DIVISION OF BIOLOGICAL CONTROL
  20.                        UNIVERSITY OF CALIFORNIA, BERKELEY
  21.                                1050 SAN PABLO AVE.
  22.                                 ALBANY, CA 94706
  23.                                  (415) 643-6367
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                           1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.                           INTRODUCTION     
  67.  
  68.      This  program  sprang  out  of  the  need  for quick field sorting and
  69. counting of different classes of items.    It  was  originally  designed as
  70. strictly a  tally counter  -- one  of those  multi-key counters for keeping
  71. track of various categories  of  items.  Various  modifications immediately
  72. became obvious,  so that  now it  includes the  ability to assign and store
  73. field names, save names and final counts to  a data  file, reset individual
  74. numbers,  obtain  percentages,  decrement  counts,  and  add  (or subtract)
  75. numbers greater than one.  Most of the various functions are self document-
  76. ing  from  the  on-line  help  screen  and  from within the various program
  77. modules,but it was also felt that this guide may also be of assistance.
  78.  
  79. 1.   GETTING STARTED  
  80.  
  81.      Conventions:   Because  the  arrow  key  characters  cannot  easily be
  82. displayed or printed by most printers, their names are represented such as:
  83.  
  84.           <Up>, <Down>, <Right>, <Left> for individual keys and
  85.           <RLUD>  for  all  four  characters  as  they appear on the sample
  86.           screens.  On the  actual screen  of the  M-100, the  actual arrow
  87.           will appear.
  88.  
  89.      In order  to use  the program  TALLY5.BA, the  data file NAMES.DO must
  90. first be created.  The purpose of this file is  to store  the default names
  91. for the  various tally  categories to be displayed on the screen.  Although
  92. the file is necessary, only the  default  filename  for  the  data  file is
  93. required (see  more discussion  on page  6).  Create the NAMES.DO file with
  94. the TEXT editor on the Model 100.  Refer to the Model 100 user's manual for
  95. more details about the editor.  To load the program from the tape, plug the
  96. cassette player into the Model 100.  Insert the cassette and rewind  to the
  97. beginning  of  the  tape.    Reset  the  counter to zero.  The label of the
  98. cassette indicates where the program is stored, so advance to the beginning
  99. of the  file.   Put the tape player in the PLAY mode and enter BASIC on the
  100. Model 100.  At the BASIC  prompt type  CLOAD"TALLY5.BA" followed  by a <CR>
  101. (carriage return).  The player should then begin searching the tape for the
  102. file and will display "TALLY5 Found". The computer will then  load until it
  103. reaches the  end of  file mark.  When the load has completed, the OK prompt
  104. will appear.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.                                           2
  120.  
  121.  
  122.  
  123.  
  124.  
  125. 2.   THE DATA ENTRY SCREEN  
  126.  
  127. The default entry screen looks like the following:
  128.            ------------------------------------------
  129.            | (1)   (2)   (3)   (4)   (5)    Bank #  |
  130.            |                                  1     |
  131.            |    0     0     0     0     0           |
  132.            |                               Filename |
  133.            | (6)   (7)   (8)   (9)   (0)   GR.TOTAL |
  134.            |                                    0   |
  135.            |    0     0     0     0     0   <H>elp  | 
  136.            |   SUM        RAM =  18514      <Q>uit  |
  137.            ------------------------------------------
  138.   The first  row of  numbers is  the key  number, corresponding  to the ap-
  139. propriate numeric  key to  press.   The second row is where the field names
  140. are placed. The third row  contains  the  total  for  that  particular key.
  141. Totals and the bank of ten keys in use are indicated the right hand portion
  142. of the screen.  "GR.TOTAL" is  the grand  total of  all keys.     Below the
  143. grand  total  are  two  prompts;  "H"  (H-key)  for on-screen help, and "Q"
  144. (Q-key) to quit the program.  These will be discussed later.  
  145.  
  146. 3.   INCREMENT & DECREMENT MODES
  147.  
  148.      Increment is the default mode.  In this mode, numbers  are incremented
  149. or decremented  by one  at each press of a number key(1 through 0), just as
  150. they would with a tally counter.  This mode is indicated by  the word "SUM"
  151. in the  lower left  corner of  the screen.   Note  that as  the numbers are
  152. pressed, the grandtotal is also incremented.  If the wrong  key is pressed,
  153. the number  can be  adjusted by  pressing the  minus ("-") key and the cor-
  154. responding number.  The decrement mode lasts only for a single key press.
  155.  
  156. 4.   HELP MODE  
  157.  
  158.      All of the various program modules are available through the increment
  159. mode.   In order  to remind  you which keys activate which function, a help
  160. mode is included.  Pressing the "H"-key brings  on the  help mode  with the
  161. following screen:
  162.  
  163.               -----------------------------------------
  164.               | (1)   (2)   (3)   (4)   (5) <U D> Bank|
  165.               |                             <TAB>Entry|
  166.               |    0     0     0     0     0<->Reduce |
  167.               |                             <F>ile    |
  168.               | (6)   (7)   (8)   (9)   (0) <R>eset   |
  169.               |                             <P>ercent |
  170.               |    0     0     0     0     0<N>ame    |
  171.               | SUM                         <S>ave    |
  172.               -----------------------------------------
  173.  
  174.  
  175.  
  176.  
  177.  
  178.                                           3
  179.  
  180.  
  181.  
  182.  
  183.  
  184. All of  the valid keys (except <H> and <Q>) and an explanation of the modes
  185. which they will invoke are listed.  For instance, pressing the <-> key will
  186. decrement the following key by one,pressing the <+> key will get out of the
  187. decrement mode, and pressing the  <R>  key  will  allow  one  to  reset the
  188. counter.    If  a  non-valid  key  is pressed, nothing happens; the program
  189. simply waits until a valid key is pressed.
  190.  
  191. 5.   ENTRY MODE
  192.  
  193.      Often you may want to enter a large number and  not have  to press the
  194. key several  times.   To add  larger numbers press the<TAB> key.  This puts
  195. you into the "ENTRY" mode indicated in the lower left corner of the screen.
  196.  While in  the entry  mode, the right portion of the screen lists the valid
  197. keys.  The bank select keys, <Up> and <Down> arrows, will select banks, and
  198. the <Right> and <Left> arrow keys will move from one field to another.  The
  199. <-> and <+> keys will subtract or add the entry, respectively.  A <CR> will
  200. bring you back to the increment mode.  
  201.  
  202. 6.  FILE 
  203.  
  204.      Pressing the  <F> key allows you to change the file name to which data
  205. is stored.  After the key is pressed you are prompted for a new  file name.
  206. Pressing <CR>  will keep the old name.  After the <CR> is pressed, you will
  207. be put back into the increment mode.
  208.  
  209. 7.  COMMENTS
  210.  
  211.      Although not documented in the help  screen, you  can add  comments to
  212. the data.   Pressing the <C> key clears the screen and presents the follow-
  213. ing prompt:
  214.  
  215.           ENTER COMMNETS (255 CHARACTERS MAX)
  216.           DATE & TIME WILL BE ADDED AUTOMATICALLY
  217.           ?
  218.  
  219. Simply enter the comment  & press  <CR>, &  you are  back in  the increment
  220. mode.
  221.  
  222.  
  223. 8.  NAMING MODE
  224.  
  225.      Field names are added to the keys in two different ways. Default names
  226. are specified in a text  file  called  NAMES.DO.  Names  can  be  up  to 23
  227. characters long,  although only  the first five characters are displayed on
  228. the screen.  New categories are  often encountered  in the  field which are
  229. not anticipated, and their names can be added to the others by pressing the
  230. "N" key. The field name is printed in normal type, and a  prompt appears in
  231. the lower left corner e.g;  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.                                           4
  238.  
  239.  
  240.  
  241.  
  242.  
  243.               -----------------------------------------     
  244.               | (1)   (2)   (3)   (4)   (5)    Bank # |
  245.               |NAME1                             1    |
  246.               |    0     0     0     0     0          |
  247.               |                                       |
  248.               | (6)   (7)   (8)   (9)   (0)   GR.TOTAL|
  249.               |                                    0  |
  250.               |    0     0     0     0     0   <RLUD> |
  251.               | NAME( 1): NAME1                SELECT |
  252.               -----------------------------------------      
  253.  
  254. Use the  <Right> or  <Left> arrow  keys to select the desired key position.
  255. The bank select keys, <Up> and <Down> will select other banks while in this
  256. mode.   The <BKSP>  key makes  corrections to  the name  you have selected.
  257. After a name has been entered  or modified,  the<CR> key  ends the process,
  258. and the <ESC> key will abort any changes and move to the next name.  A <CR>
  259. leaves the name the same, and returns you to the increment mode. 
  260.  
  261.           The easiest method of setting the names is  to enter  them into a
  262. text file called NAMES.DO.  A sample NAMES.DO is given below:
  263.  
  264.             POND,1STCX,2NDCX,3RDCX,4THCX,PUPCX,1STAN
  265.             ,2NDAN,3RDAN,4THAN,PUPAN,NOTONECTA,DAMSE
  266.             LFLY,DRAGONFLY,TROPISTERNUS,AGABUS,       
  267.  
  268.  
  269. The  first  name  is  the  default  file  name for storing the data.  It is
  270. restricted to six characters  in length.   The  names which  follow fill in
  271. beginning in  bank #1,  name #1 until all forty names are filled or the end
  272. of the file is reached, whichever comes first.  In  the above  case, ten of
  273. the  first  bank  and  five  of  the  second will be named.  Note also that
  274. although only the first five characters of the name are displayed, up to 15
  275. characters will  be saved  to the  data file.   To avoid confusion,however,
  276. make sure that the first five characters of each name are unique.
  277.  
  278. 9.   RESET MODE 
  279.  
  280.      Pressing the <R> key allows you to reset any or all keys to zero.   To
  281. reset all  numbers, press  the <A>  key, otherwise use the individual field
  282. and bank select keys (i.e. arrow  keys) to  select individual  fields to be
  283. reset.  A <CR> will bring you back to the increment mode.
  284.  
  285. 10.   PERCENTAGE MODE 
  286.  
  287.      Pressing the <P> key temporarily displays the percentage of each field
  288. as part of the grand total.  Different banks can be selected  while in this
  289. mode.   Hitting any  other key  will return  you to  the increment mode and
  290. number display.
  291.  
  292.  
  293.  
  294.  
  295.  
  296.                                           5
  297.  
  298.  
  299.  
  300.  
  301.  
  302. 11.   SAVING DATA TO A FILE 
  303.  
  304.      The <S> key allows you to  save the  data.   The data   is  saved in a
  305. format which  allows easy  importing into  a Lotus 1-2-3 work sheet.  Names
  306. are saved as quote  delimited, comma  separated strings,  while the numbers
  307. are separated  by spaces.   Time  and date are automatically added when the
  308. record is saved.  When the <S> key is pressed  data is  automatically saved
  309. to the  preselected data  file, and  the numbers  are reset  to zero.  Even
  310. though the data is reset, the field names  will remain  unchanged.   If new
  311. names have been added since the last save, or if it is the first save since
  312. the program began, the names are stored along with the data.  If no changes
  313. have been  made to the field names, only the data will be saved.  Each time
  314. data is saved, NAMES.DO  is updated  with the  default filename  and latest
  315. names, so  that the  next time  the program is run the latest names will be
  316. used.  Once the data has been  saved,  it  cannot  be  altered  from within
  317. TALLY5.BA.   It is accessible with the TEXT processor on the Model 100, but
  318. you must leave the TALLY5 program  to do  so.   If you  find that  you have
  319. entered spurious  data, you  can also  add a  comment to that effect at any
  320. time.
  321.  
  322.                                 DISCUSSION
  323.  
  324.  
  325.      The primary purpose  of  this  program  was  to  allow  for  quick and
  326. reliable entry  of numeric  data into  a text  file with  a portable, field
  327. computer.  It assumes only that  the Tandy  Model100/102 computer  is being
  328. used, and  that there  is a  minimum of 24K bytes of RAM.  Other embellish-
  329. ments could be added for optional  equipment such  as saving  to a portable
  330. disk drive,  transfer of  files to another computer etc, but these can also
  331. be accomplished through the MENU of the Model 100.  The original intent was
  332. to use the program for data collection, and use another program on a PC for
  333. the analysis and editing  of the  data.   The data  files are  written in a
  334. format which  is compatible  with Lotus  1-2-3, and most database programs.
  335. Also BASIC programs could be written  to access  the data.   When  Lotus is
  336. used to import the data, the names will fill the first row, and the numbers
  337. will fill in under the appropriate headings.  Comments, date,  and time are
  338. written to  be placed in the 41st column next to the last number.  I should
  339. mention that certain parts of the code must be modified for the use of this
  340. program on  other brands  or models of computer.  I have tried this program
  341. on a Model 200 and found that the BIOS calls to print inverse text  are not
  342. the  same  in  the  two  machines.    These are on line #s 30 (Call 16959 -
  343. disables scrolling) and on line  #  50  where  IN  and  NR  are  set (17001
  344. and17006 for inverse and normal text, respectively).  I would appreciate it
  345. if users of other  laptops do  get the  program working  on their machines,
  346. that  they  let  me  know.    In  order  to keep track of who is using this
  347. program, I have enclosed  a Registration  Form.   I would  appreciate being
  348. notified of  any bugs which arise while using the program.  I also strongly
  349. recommend that before you use this  program  on  sensitive  data,  that you
  350. practice  all  phases  of  the  program.   This should prevent any unwanted
  351. surprises during actual data gathering procedures.
  352.  
  353.  
  354.  
  355.                                           6
  356.  
  357.  
  358.  
  359.  
  360.  
  361.                   TALLY5 USER REGISTRATION FORM
  362.  
  363. NAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   
  364. ADDRESS. . . . . . . . . . . . . . . . . . . . . . . . . . . .   
  365. CITY . . . . . . . . . . . . . . .     STATE . . . . . . . . . . .   
  366. ZIP. . . . . . . .      PHONE . . . . . . . . . . . . . . . .   
  367. VERSION OF TALLY USED (SEE 1ST 10 LINES OF PROGRAM). . . . . . . . . . . .
  368. TYPE OF COMPUTER. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  369. COMMENTS & SUGGESTIONS. . . . . . . . . . . . . . . . . . . . . . . . . . .
  370. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  371. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  372. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  373. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  374.  
  375. WHAT DO YOU USE THIS PROGRAM FOR? . . . . . . . . . . . . . . . . . . . . .
  376. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  377. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  378. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  379. . . . . . . . . . . . . . . . . .
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.                                           7
  415.