Hoagie
August 17th, 2001, 06:44 PM
This is bugging the hell out of me!
Does someone have any idea why this is chunk of code is overflowing on the 5th line!? If I remove the '1800' the overflow shifts to line 7.
iCellFrames = iCellFrames + iShiftFrames
iHours = Int(((iCellFrames / 60) / 60) / 30)
iCellFrames = iCellFrames - (108000 * iHours)
iMinutes = Int((iCellFrames / 60) / 30)
iCellFrames = iCellFrames - (1800 * iMinutes)
iSeconds = Int(iCellFrames / 30)
iCellFrames = iCellFrames - (30 * iSeconds)
I used several MsgBox inserts to check the values as it was stepping through and everything was right where it should be! I don't understand why I am getting overflow on such a horribly simple math problem!!
iCellFrames and iShiftFrames are 'Long'
iHours, iMinutes, iSeconds are 'Integer'
Many thanks for any help.
Hoag
Does someone have any idea why this is chunk of code is overflowing on the 5th line!? If I remove the '1800' the overflow shifts to line 7.
iCellFrames = iCellFrames + iShiftFrames
iHours = Int(((iCellFrames / 60) / 60) / 30)
iCellFrames = iCellFrames - (108000 * iHours)
iMinutes = Int((iCellFrames / 60) / 30)
iCellFrames = iCellFrames - (1800 * iMinutes)
iSeconds = Int(iCellFrames / 30)
iCellFrames = iCellFrames - (30 * iSeconds)
I used several MsgBox inserts to check the values as it was stepping through and everything was right where it should be! I don't understand why I am getting overflow on such a horribly simple math problem!!
iCellFrames and iShiftFrames are 'Long'
iHours, iMinutes, iSeconds are 'Integer'
Many thanks for any help.
Hoag