Phoebe
10-03-2001, 04:56 PM
I encountered: error '6': overflow when trying to calculate something:
It's not a data type issue because when calculating I use long, and even when outputing the result to textbox, like below, I still got the error message:
-----------------------------------------------------------
Text2.Text = (((24 * 3600) - (Hour(shiftStart) * 3600) - (Minute(shiftStart) * 60)))
-----------------------------------------------------------
What's up with this? The value of hour(anydate) ranges from 0-23, and the value of minute(anydate) ranges from 0-60.
So?
It's not a data type issue because when calculating I use long, and even when outputing the result to textbox, like below, I still got the error message:
-----------------------------------------------------------
Text2.Text = (((24 * 3600) - (Hour(shiftStart) * 3600) - (Minute(shiftStart) * 60)))
-----------------------------------------------------------
What's up with this? The value of hour(anydate) ranges from 0-23, and the value of minute(anydate) ranges from 0-60.
So?