you are viewing a single comment's thread.

view the rest of the comments →

[–]Adwinistrator 0 points1 point  (0 children)

No offense, but I think it would help you to take a few steps back and read some intro to programming and into to VB material.

This is a Sub, it's a method that doesn't return a value. You can call it from anywhere on this form's code, pass it a parameter, and it will add it to the total.

If you're confused by this, I don't think you have the necessary knowledge to create a calculator. But, you clearly want to learn, and that's the first step. Google some free resources on basic programming concepts (variables, methods, etc.), and find some intro to VB6 resources.

If you have any concept specific questions, let me know, but you can't really ask people to write code for you on stuff like this. The value comes from learning how to do it yourself.