I am making a calculator app as my first self assigned project using Visual basic, and I want it to continue accepting numbers to calculate possibly up to a hundred different numbers, and I don't want to have to make a variable for all of them(not to even mention if that would work). The way I see it is that every different number entered into the calculator between operators would be stored as a different variable. Is this possible? maybe a work around? maybe even a better way to do it! any help is appreciated! thanks!
Visual basic continuing variables
72 Views Asked by Darth Trevader At
1
There are 1 best solutions below
Related Questions in VARIABLES
- Simplexml get path from variable
- Python - Dynamically naming variables
- Azure Web App PATH Variable Modification
- How can I pass variable to ansible playbook in the command line?
- Fetching URL vars into form and submitting to other page
- Iframe not passing url parameters
- Stata: Retrieve variable label in a macro
- How to make all variables in javascript script have two decimal points
- Javascript works with HTML but not in Rails
- Running Line of code twice causes activeX error 0x8000ffff
- Erlang syntax error unclear
- CMD specifying columns to save?
- Simplify code with sending Methods as Variable
- Calling a variable in Matlab without using the full name?
- How to call c-style cleaner functions implicitly?
Related Questions in VISUAL-STUDIO-2013
- couldn't copy pdb file to another directory while consuming wcf web service
- XSD.exe Generating Classes with type Object instead of XSD defined type
- Can I deploy multiple instances of my application on the same windows phone?
- Cannot "Go To Definition" in Visual C++ 2013
- Get date Minus 1 day but at exacty 4 AM
- How to Create unit test cases from Dll in VS 2013
- Can I use free() formally in VS2013?
- Is it okay to cancel Visual Studio installation? And can I resume it?
- Add a picture to Picture Control in a dialog box (error RC2108: expected numerical dialog constant)
- Within a .vcxproj file what are the possible values for the <ConfigurationType> and what do those values mean?
- What is the latest .NET Framework that works with WCF RIA Services and EF 5.0 in a Silverlight 5 LOB application?
- Labels turned dark when printing as graphics in vb 2013.
- WiX and custom extensions for primary output?
- Avoiding installation of IIS Express 8 during an unattended install of Visual Studio 2013
- VS Database Project User Creation Error
Related Questions in CALC
- Q: Jssor account for body padding in Scalewidth
- Get gas consumption from cumulative data
- Firefox on OSX miscalculates CSS calc
- css calc with calculated variables
- CSS Calc works in Chrome but not in Phonegap app on Android 4.4.2
- Use calc() in transform:rotate()
- Excel - Converting Text in a result
- Container height 100% - px
- display: flex; vs calc(); performance
- openoffice calc macro access current selection of a validation list
- NgStyle not being applied to html
- How to calculate sales commission in java
- Visual basic continuing variables
- Use 2 Css LESS variables and subtract one from the other
- using modernizr to detect vh, vw with calc
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you use a While loop you can do this fine.
All you need to do is set variables for Multiply, Subtract, Divide, and Add which should be as Booleans and declare FinalAnswer and Input as Dec.
Do something like:
For whenever you input another number. Have this assigned to a separate button called 'AddNumber' or something.
As soon as you want to output the total of all of these then you can have another button called 'Calculate' or something which could have something like:
You could also have this set at the bottom of the While loop which would give you a running total of all the numbers you have input so far.
Hope this makes sense!