Information générale
Catégorie:
Codage, syntaxe et commandes
>I am new to Visual Basic and trying to create a calculator. My question is how do after I input the first number in the text box, how do I store that number and have the ability to input another number, if I used a control for the numbers on my keypad?
>Also how does a flag work? I read that I need flags to tell if an operator was clicked on before I can input that second number.
You can store the value in a variable
A flag is nothing more then just a variable or something else you create to remember the operator. You can also use a variable for that.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement