Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Visual Basic 6
Name: cooperma Date: December 15, 2005 at 14:25:05 Pacific OS: XP CPU/Ram: 1.6/1gb
Comment:
I am using VB6 to create a program for a gross pay calculator. I am trying to find code so it will work. right now i have :
However, it seems that, no matter what, it always subtracts 40 hrs, and multiplies it by 1.5. This is only the second program i have created. NEED HELP PLEASE!
Name: StuartS Date: December 15, 2005 at 14:49:31 Pacific
Reply:
The way you have written the code that what it will do.
Functions inside parentheses are evaluated first working outward so that functions with without parentheses are evaluated last.
So the way you have written the code, 40 is subtracted from hours. The result of that is multiplied by 1.5. The result of that is then multiplied by rate.
What is it you want it to do?
Stuart
0
Response Number 2
Name: cooperma Date: December 15, 2005 at 14:53:40 Pacific
Reply:
Thanks for the quick response. I ended up using a if else decision thingy. I put
If Hours.Text > 40 Then Gross.Text = 40 * Rate.Text + (Hours.Text - 40) * 1.5 * Rate.Text Else
Summary: Hi everyone. Need your help. I Am creating a Windows application in Visual basic 6 that writes data into SQL database. My login Form that firstly show when running the app is frmLogin. I have Got a c...
Summary: Hello, Would it be possible to make a successful game (provided there are good code and graphics) in Visual Basic 6 using the DirectX 8.1 SDK? I'm pretty experienced with VB6 and API's. BTW, I have ...
Summary: Hi! I would like to learn Visual Basic 6. I can not find a good Visual Basic6 tutorial.I found many tutorial, but please tell me the best one. Thanks Peter ...