Results 1 to 9 of 9

Thread: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

    help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Question [URGENT]help me how to display the answers in a calculator in vb 6.0

    help me how to display the answers in a calculator in vb 6.0 i'm just a student help! i used this codes but it won't work:
    Private Sub Command11_Click()
    b = Text1.Text
    Select Case d%
    Case 1: sum = a + b
    Text2.Text = Str(sum)
    Case 2: sum = a - b
    Text2.Text = Str(sum)
    Case 3: sum = a * b
    Text2.Text = Str(sum)
    Case 4: sum = a / b
    Text2.Text = Str(sum)
    End Select

    End Sub

  3. #3
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

    Code:
    b = Text1.Text
    The above line should be written like this:
    Code:
    b = val(Text1.Text)

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

    If that didn't helped you in solving, then post your project...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  5. #5
    Junior Member
    Join Date
    May 2008
    Posts
    22

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student h

    to anyone who is listening:

    is vb6 able to be installed on xp, and if it is, why won't it install on the xp I am using. What do I have to do to get it to install. I have already tried two programs from the vb6 site that are supposed to help it setup. The original problem was that even though I was using the original vb6 cd to install the program onto the computer, it would only install a bunch of text files onto the hard drive, nothing useful. I orginally installed the program on my windows 98 computer. It didn't have a problem there. I don't know what went wrong on the xp.
    can someone help me?

  6. #6
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

    There is no problem for installing vb6 in xp machine. I am having it installed in my xp machine. No problems yet...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  7. #7
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Indiana
    Posts
    295

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

    I have it installed on both an XP machine and also on a Vista machine. It works on each.

  8. #8
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!

    to anyone who is listening:

    is vb6 able to be installed on xp, and if it is, why won't it install on the xp I am using. What do I have to do to get it to install. I have already tried two programs from the vb6 site that are supposed to help it setup. The original problem was that even though I was using the original vb6 cd to install the program onto the computer, it would only install a bunch of text files onto the hard drive, nothing useful. I orginally installed the program on my windows 98 computer. It didn't have a problem there. I don't know what went wrong on the xp.
    can someone help me?
    What's the message you get after installing the program?? (any errors..??)
    Are you able to complete the setup successfully or not..??

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  9. #9
    Hyperactive Member danecook21's Avatar
    Join Date
    Feb 2008
    Location
    NC, USA
    Posts
    501

    Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student h

    madscientist: you just hijacked this thread.... please post new threads for your own questions. And as the others said, I also have VB6 on XP with no problems at all.

    rainjoyce: what is d%? I think you meant to put the "b" variable there. and as akhileshbc said, you need to use Val(Text1.Text)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width