• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

VB6 help please: Need help to find out the tomorow remaining hours for a driver who can not drive more than 60 hour a week

Hello This is the Code I have and I am only a beginner please tell me where I am going wrong.  Thanks

Private Sub cmdCompute_Click()
TotalHrs = 0 + 1 + 2 + 3 + 4 + 5
intTomRemHrs = 60 - TotalHrs
End Sub

Private Sub cmdExit_Click()
Load Me
End Sub

Private Sub TodayDateHrs_Change()
Dim intHrs(6) As Integer
TodayDateHrs = 0
OneDayAgoHrs = 1
TwoDaysAgoHrs = 2
ThreeDaysAgoHrs = 3
FourDaysAgoHrs = 4
FiveDaysAgoHrs = 5
End Sub

Private Sub TomRemHrs_Change()
Dim intTomRemHrs As Integer

End Sub


Any help is appreciated thanks.
0
macauley
Asked:
macauley
  • 4
  • 4
1 Solution
 
JR2003Commented:
I can't see what your code is supposed to do. What are you trying to do?
0
 
macauleyAuthor Commented:
I need to find otu to find out the tomorow remaining hours for a driver who can not drive more than 60 hour a week
0
 
macauleyAuthor Commented:
may be my question look awkward but it will be great if you can help, my question is : i drive only sixty hours a week, so the program should ask me about my hrs today, then the program will adds the total hrs for six past consecutive days including to day, then the program will deduct that total from sixty, the remainder is the hrs available for tomorow to be displayed, sorry if i am too fussy
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
JackOfPHCommented:
is this an assignment?
0
 
macauleyAuthor Commented:
No it is not.  It is something I am playing with for hobby as I do an elearning course.
0
 
JackOfPHCommented:
I uploaded a program check it out ...
0
 
JackOfPHCommented:
Post if you have questions
0
 
macauleyAuthor Commented:
Thank you JackOfPH.  Your sample does exactly what I was lookign for, now I will be able to review it and see where I was way off.

Thank you.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now