I am making a calculator in Virtual Basic for almost a week. I am encountering a problem when using the equals sign. When I type problems like 4 + 6 = 10 it answers correctly. When I press the equal again immediately after the calculator answers 10. It should enter as 10 + 6 = 16 but it does not work like that. How do I create a calculator that when users press again and again they will have a loop of + 6? Please help me. This is the code I used for my equal sign button.
DAVE_44 0 Newbie Poster
DAVE_44 0 Newbie Poster
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
DAVE_44 commented: I understand what you mean but I do not know the code of that. I am sorry can you type it in Visual Basic Language? +0
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
DAVE_44 commented: I already done this one but I cannot code the one you mentioned on the other comment +0
DAVE_44 0 Newbie Poster
DAVE_44 0 Newbie Poster
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
DAVE_44 commented: what should be the scope of num1 for this to work? hahahaha it did not work on my code +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.