TALLY or a SUM search on any line you select

Authors

Publication

Pub Details

Date

Pages

See all articles from Extensions issue 4

One of the changes in this issue permits you to do a TALLY or a SUM search on any line you select. When I was limited to one line, I made little use of the SUM routine and no use of TALLY. Now I can set up a file for each of my products which I sell in a year. Each line could represent a different month’s sales and by searching and calculating the appropriate line I could check the total profits or gross sales in a given month. There are certainly similar possibilities you may find. Granted, these routines are not fast, but they could suit your purposes if you are not prepared to invest in a major financial program. Of course, the numbers to be calculated do not need to represent monetary values.

To allow you to select any line for SUM or TALLY just make the following changes:

130 LET J$=CHR$ PEEK VAL "23670": IF J$="T" OR J$="S" THEN INPUT "WHICH LINE TO CALCULATE? ";RW: IF RW<U OR RW>J THEN GO TO VAL "130"
9200 POKE VAL "63798",J+U: LET E$(RW)=E$(RW): IF USR VAL "63792" THEN LET T=T+VAL E$(RW, TO J+U)
9205 LET 4$(RW,J+H)=E$(RW,J+H): IF USR VAL "63792" THEN LET TO=TO+VAL E$(RW,J+H TO )
9250 POKE VAL "63798",Q: LET E$(RW)=E$(RW): IF USR VAL "63792" THEN LET T=T+VAL E$(RW): LET TO=VAL E$(RW)

Whenever you do a TALLY or SUM search, the input line at the bottom of the main menu will prompt you to input the line number you wish to calculate. Once you enter that number, the routine will continue as before.

Products

Downloadable Media

 

Image Gallery

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.

Scroll to Top