Adding to numbers in VB6

10 pts.
Tags:
Visual Basic
Visual Basic 6
Hi, Please i need for adding to number with decimals in vb6 from a textbox. that is, dim txt as double dim txt2 as double dim result as double txt=val(text.text)  txt2=val(text1.text) result=txt + txt2 'case 1 if text.text=5 text1.text=6 result=11 but when text.text=5,6 text1.text=6,7 result=11 instead of 12.3 thanks for helping. Dex

Software/Hardware used:
VB6

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    Your code works well for me (result = 12.3).
    70,220 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following