Sorry RB,
For some reason, I didn't get notified of your replies.
I don't have the time to give you a full explanation just now, but the link I directed you to is missing the bit of information which is vital to what you are doing
The code was
Code:
(clock_var.toString()).charAt(9)-------for tenths of a second
(clock_var.toString()).charAt(10)------for hundredths of a second.
this shows the tenths and hundredths, but same applies for minutes and seconds. You have to extract the minute and second figures and operate on them individually. You can't operate on mm:ss because it's a formatted number and you have to extract the real numbers.
If you were trying to find out the user had done a task within 1 minute and 30 seconds. You have to convert your clock variable to two variables...say myMins and mySecs, then I would simply convert to seconds----makes the logic of comparing the time much easier.
If you use minutes and seconds--the logic gets more awkward.
what I haven't tried---if you set up the clock format only in seconds----does it count in seconds---ie 120 for two minutes, or does it just keep clocking 0 to 60????
sorry for the rushed reply
my porridge is ready!!!!!
