hi guys i have recently come to a problem where the equal sign keeps adding after getting a sum of two numbers.
for example if i add 5 + 5 it would equal 10, but it will then keep adding 5 over and over again.

Dim Answer As Double
        Amount1 = Val(txtAnswer.Text)
        Answer = Val(Amount1) + Val(Amount2)
        txtAnswer.Text = Answer
    End Sub

Hi Mauricio 3, welcome at DaniWeb. Are you in an infinite loop?
Do you clear your variables after calculation?
You question is not very clear. Please provide some extra info.

You only show a part of the sub. What does the rest of it look like?

Inline Code Example Here

5+5 answer
text.close;
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.