home *** CD-ROM | disk | FTP | other *** search
- Calculator
- Calculator
- System
- Form1
- Readout
- Number
- System
- Number
- System
- Number
- System
- Cancel
- System
- CancelEntry
- System
- Number
- System
- Number
- System
- Number
- System
- Operator
- System
- Operator
- System
- Number
- System
- Number
- System
- Number
- System
- Operator
- System
- Operator
- System
- Number
- System
- Decimal
- System
- Operator
- System
- Percent
- System
- DecimalFlag
- NumOps
- LastInput
- OpFlag
- TRUEs
- FALSEH
- @ Form_Load
- Percent_Click
- Readout
- Caption
- Cancel_ClickT
- Decimal_Click,
- CancelEntry_Click
- Number_Click
- Index^
- Number
- Operator_Click
- Operator
- AddTwo
- SubTwo
- MultTwo
- DivTwo
- Copyright (C) 1991 Microsoft Corporation-
- You have a royalty-free right to use, modify, reproduce and distribute-
- the Sample Application Files (and/or any modified version) in any way
- you find useful, provided that you agree that Microsoft has no warranty,
- obligations or liability for any Sample Application Files.s
- Previously input operand.
- Second operand.
- Decimal point present yet?
- Number of operands.
- Indicate type of last keypress.
- Indicate pending operation.
- Form_Load
- Initialization routine for the form.t
- Set all variables to initial values.t
- Percent_Click
- Click event procedure for percent key (%).
- Compute and display a percentage of the first operand.-
- Cancel_Click
- Click event procedure for C (cancel) key.
- Reset the display and initializes variables.t
- Decimal_Click
- Click event procedure for decimal point (.) key.e
- If last keypress was an operator, initializek
- readout to "0." Otherwise, append a decimal
- point to the display.
- CancelEntry_Click
- Click event procedure for CE (cancel entry) key.e
- Number_Click
- Click event procedure for number keys (0-9).k
- Appends new number to the number in the display.e
- Operator_Click
- Click event procedure for operator keys (+, -, x, /, =).
- If the immediately preceeding keypress was part of a
- number, increment NumOps. If one operand is present,
- set Op1. If two are present, set Op1 equal to the
- result of the operation on Op1 and the currentt
- input string, and display the result.
- Can't divide by zero
- Calculator
-