by Mark Hill (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This is a Standard calculator with the usual +,-,/,* functions. All procedures are contained within in a module which may seem a little odd to some but that should make it more educational at least. Included is coding to prevent division by zero which would otherwise cause errors. Also the last 10 answers found are displayed in a list box which might be useful for some.
Inputs
Numbers.
Assumes
New users should be aware all the "proper" code is in the module(module1).The mouse must be used to enter numbers etc. as the Keypad is not initialized in this version.
Code Returns
Numbers.
Side Effects
All number variables declared as Single. A ridiculously large calculation will halt the program.
API DeclarationsNone.
Download Slurp's Calculator (4 KB)