|
-
Jul 30th, 2012, 12:56 PM
#8
Thread Starter
Member
Re: Convert Timer to decimal or int
Sorry.
What I am doing is having a timer running called TotalTimer. I have this output to a non-visable textbox called TotalTimerBox. What I want to do is convert that value to a int or dec to be used for calculations.
If Now.TimeOfDay >= NineTime And Now.TimeOfDay <= TenTime Then
NineToTen += 1
Production += 1
End If
If Now.TimeOfDay >= TenTime And Now.TimeOfDay <= ElevenTime Then
TenToEleven += 1
Production += 1
End If
If Now.TimeOfDay >= ElevenTime And Now.TimeOfDay <= TweleveTime Then
ElevenToTwelve += 1
Production += 1
End If
Dim ProductionTime As Integer = (TotalTime)
Dim TotalProduction As Integer
TotalTime = ProductionTime / 60
TotalProduction = ProductionTime / Production
Label16.Text = TotalProduction.ToString
This is the code I was trying to use
Tags for this Thread
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
|