View Poll Results: may i know a source code of a simple calculator please,
adding to diff.numbers. 0 0%
adding more than one digit 0 0%
Multiple Choice Poll. Voters: 0. You may not vote on this poll

hello to everyone : a little help please; im a beginner trying to know VB6

Newbie Member
17Aug2010,19:37   #1
dennycarlo™'s Avatar
hello to everyone , im a newbie in VB6, and want some help in VB6 programming, i wish that this would be a good chance that someone would help me in VB6. may i know the source code of how to add three different numbers in Vb6: e.g.

2+2+4=8

and what if two digits:

12+ 34=46

i know that its just a simple thing ,but honestly i just don't know how to work for it.


i did some little program but not as complex like this. for i want to make a simple calculator on my own.
will you please help me.

Go4Expert Founder
18Aug2010,09:19   #2
shabbir's Avatar
Moved to VB forum
Pro contributor
19Aug2010,03:13   #3
virxen's Avatar
first of all make your project's main form and send it here in a zip file to help you.
Skilled contributor
22Aug2010,17:44   #4
ManzZup's Avatar
to make it clear you are making a cal as of the windows calc
(the professional type) theres only one txtbox to input?

And you need to get the addition of 3 number.
Is your calc scientific type? I mean the type in which you chould first type everything and then click on the = button to calc?
if so you need to seperate the string into dirrent sections, possibily to a array, by breaking into sections from the + sign.

If not you just need 2 vars.
First variable get the 1st avlue.
a = 1 value
Second get the 2nd value
b = 2 value
when the user says plus a + b
if the user press plus again
a = result (or a+b)
then again user enter the 2nd no
b = 2nd value
again display
a+b (but here now the real value is a+b+b )
hope u get it!
Contributor
23Aug2010,08:04   #5
MartinJose's Avatar
I's still very simple. Learn more about it.