|
-
Jul 25th, 2008, 05:34 AM
#1
Thread Starter
New Member
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!
-
Jul 25th, 2008, 06:32 AM
#2
Thread Starter
New Member
[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
-
Jul 25th, 2008, 07:18 AM
#3
Re: help me how to display the answers in a calculator in vb 6.0 i'm just a student help!
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,...
-
Jul 25th, 2008, 07:20 AM
#4
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,...
-
Jul 25th, 2008, 11:27 PM
#5
Junior Member
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?
-
Jul 25th, 2008, 11:33 PM
#6
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,...
-
Jul 26th, 2008, 12:39 AM
#7
Hyperactive Member
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.
-
Jul 26th, 2008, 04:22 AM
#8
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,...
-
Jul 26th, 2008, 03:19 PM
#9
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|