ADD PROGRAM VERSION 1.0 July 23, 2009 (C)MAU CORP 2009. A must have calculator program for all business people Purpose Programmable, compute using labels and numbers Use RUN COMMAND mode, or via Internet Explorer Browser Able to compute from Windows Clipboard Program your labels, such as currency conversion table etc. Business mathematics, and general usage. TUTORIAL: TABLE OF CONTENT 1. INTRODUCTION 2. TECHNICAL DETAIL 3. USER MANUAL 4. CONCLUSION Program Requirements: 1. Introduction: Purpose of this program to handle mass quantity of numbers. ADDEMENU.HTM COMMANDS: 1. EDIT LINE 2. RUN PROGRAM (ANS: 132) 3. GET PRIOR EDIT LINES 4. LIST CONSTANTS 5. BROWSE HISTORY 6. CLEAR HISTORY 7. CREATE A LABEL Instruction for MENU: 1. EDIT LINE will provide user with 9 edit lines. User can spread numbers, or make them as "1+2+3+4". All 9 lines will be concatenated when user will select 2.RUN PROGRAM. 2. RUN PROGRAM will read from EDIT LINE, calculate, and the answer will be in ANS variable, as well as will display it on screen. 3. RETRIEVE LAST TO EDIT LINE To read from previous EDIT LINE, in date-time order. Only the last 28 are used. Once retrieved, select 2.RUN PROGRAM. 4. LIST OF CONSTANTS Provide a refresh display of CONSTANTS. Browse this if the ADDCONSTANT.TXT is to be 'ftp-ed' or copied by external software. 5. BROWSE HISTORY Display the all the lines entered 6. CLEAR HISTORY Clear the history will erase all history lines. User should consider run this only at end-of-day etc. 7. CREATE A LABEL If user select this, enter a LABEL NAME. The number is automatically move over from the last 'ANSWER'. If user need to perform update, use the NOTEPAD to edit this file below: ADDCONSTANT.TXT ADD PROGRAM(Line Command Mode) If user likes to use COMMAND LINE MODE, click on this LINK from ADDMENU.HTM. This is the line command where user will enter an immediate formula, such as: Example: ADD 1+2+3 ADD ANS+100 ADD ANS*US2UK 2. TECHNICAL DETAIL: READ FROM COMMAND LINE The quick way to feed data into computer is via the DOS PROMPT(RUN COMMAND) line. Programmed to read by Windows' Clipboard. It is designed for vertical cut-n-paste calcuation. If using ANS, use repeatedly, example is: ADD 1+1 ADD ANS+10 Will yield 12 as the answer VARIABLE Program is designed from read from a CONSTANT EQUIVALENT value. Please browse the ADDCONSTANT.TXT file. User can update this file for 'CURRENCY RATE' etc. Please follow the double quotation format, so that the number can be recognized by program. Example: "PRIME","0.0615" if Prime Rate is 6.15%. If using ANS, need to clear ANS, please use this example below: ADD 0 rem move 0 to ANS " MODELS Program is to save the answer on a history file. User can retrieve the calculated RUN COMMAND, to perform more calculation. User will find the DATE/TIME and the ANSWER. COMMENTS/REMARKS The RUN COMMAND could have a comment/remarks. Use the single quotation mark as separator. Example: ADD 1+1 'sample to add one plus one Example: ADD 2+2 REM this is a test Example: ADD 10/3 REM Divide 10 by 3 Example: ADD (33\16)+2 'divide as integer get 4 " COMPLICATED CALUCATION: Program has been stress tested for: Example: ADD (2+(1*2)+5+(3*4)+500)+300 WEB PAGE If using DOS PROMPT(RUN COMMAND) mode, the ADDMENU.HTM will be suppressed. However, if user use WEB PAGE, the answer will be updated on this ADDMENU.HTM. So the last answer will always to show on web page. LABEL Label Programmable, the following 2 lables are reserved by ADD Program. ANS - result from last command will feed to next line CLP - Read from Windows' Clipboard into ADD Program. If CLP is used, such as 1+CLP+3 where CLP will be replaced by current Windows Clipboard text. A set of LABELS are already defined in ADDCONSTANT.TXT file. User can add own labels, and the 'answser number' will be stored next to your new label(always). If need to change, edit this ADDCONSTANT.TXT file any time. Example: ADD US2UK*1000 Program will read from ADDCONSTANT.TXT currency rate and muliple by $1000. (where US=U.S. Dollar, UK=British Pounds) FILE INFORMATION: List of special files - ADDCONSTANT.TXT "CURRENCY"," 0.123" User can enter command below: CURRENCY*1000 will get 123 as answer Work files information: 1. ADD.LOG - historical commands save here. 2. ADD.PRM - if running batch mode, where ADD.EXE will not have a PARM. The ADD.EXE will read from this input file. Do delete this workfile - ADD.PRM file where is NOT needed. 3. ADD.$$$ - This file will always the answer file. If run the next time, the previous value with be replaced with the new answer. 4. ADD.CLP - Program save the CLIPBOARD in here for last processing. The design is always to perform a Clipboard copy. If user needs a label, go to 'CREATE A LABEL'. 3. USER MANUAL: As a user, you should add this ADDMENU.HTM on your Windows' ShortCut. The second way to start this program is to run at RUN COMMAND line. When using the WEB PAGE method, allow program to RUN. So, if using web page shortcut, you should use Internet Explorer to start this ADDMENU.HTM startup menu web page. Other web browers have been tested, will not interface well to 'windows program' User are given about 6 lines to edit, and it will act as continuous line. If using the ADDCONSTANT.TXT file, this is the VARIABLE substitution method of calculation. Preprogrammed sample is "US2UK" currency conversion. Be sure to update this file daily. Program keeps the history file. Please either delete this 'ADD.LOG' file on the daily basis, or archive it to somewhere to hide from other people who may use your computer. When using WINDOWS CLIPBOARD, program has to assume you need to add vertical columns. Please be sure you have 'vertical cut-n-paste' program. If found alphabetical characters, program will treat all of them as BLANK or called spaces. Only the numbers will be extracted, and the default sign is always PLUS SIGN. DOS PROMPT(RUN COMMAND) If you are a heavy ADD user, user can use the DOS PROMPT(RUN COMMAND) method. The calculated answer is immediate on screen. So, enter CMD.EXE at RUN COMMAND enter CD C:\PROGRAM FILES\ADD ADD 1+1 4. CONCLUSION: This program was developed over 15 years ago. When I ran this program to solve problem, and my co-worker was impressed to see the power calculator at DOS Prompt level. And, with that, it is further upgraded to run under the Internet Explorer as web page driven. We thank you for choosing this program. For comments, or feedback, please email to: ADDINFO@WORDTYPING.COM Thank You. Requires: 90K memory, 532k disk space Windows with RUN COMMAND Internet Explorer as optional Our Mission: To create the quickest ADD program on this planet