1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Visual Basic ( VB )' started by dennycarlo™, Aug 17, 2010.

?

may i know a source code of a simple calculator please,

Poll closed Aug 20, 2010.
  1. adding to diff.numbers.

    0 vote(s)
    0.0%
  2. adding more than one digit

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. dennycarlo™

    dennycarlo™ New Member

    Joined:
    Aug 6, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Philippines
    :shy: 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.
    :embarasse

    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.

     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Moved to VB forum
     
  3. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0
    first of all make your project's main form and send it here in a zip file to help you.
     
  4. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    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 :D)
    hope u get it!
     
  5. MartinJose

    MartinJose New Member

    Joined:
    Aug 17, 2010
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    0
    Home Page:
    I's still very simple. Learn more about it.
     

Share This Page