Quote:
Originally Posted by hok30
I think he wants a more spcific answer- like the source posted :p
|
Code:
strPKP = PKP.Text [COLOR=red]- Creates a variable.[/COLOR]
strPKP = Trim(strPKP) [COLOR=red]- Removes any Spaces[/COLOR]
strMinutes = strPKP * 6 [COLOR=red]- Find how many minutes (total) it'll take.[/COLOR]
I THINK... that is how it would be done (very basic) in most languages... tbh, you don't even need the 'Trim' step if the user is careful.
What WOULD be a good Idea, would be to maybe have the program read the current time, add on the time its gonna take to lose the PKP and provide an estimated time for 0pkp?
Like:
Time = 22:00
Hours Until 0PKP = 3:00
Estimated Time: 01:00
Maybe?