Hi,
Very occasionally I get a runtime error, 'Overflow' from the following statement.
strTime = "Total Load Time:" + Str$(timeGetTime - stTot)
I am setting stTot to timeGetTime at the beginning of an operation, to time something, and its a global DIM as a Long.
The DEFINE for the timeGetTime is:
Public Declare Function timeGetTime Lib "winmm.dll" () As Long
I cant understand why this line would get an Overflow, since everything is 'Long'.
The operation normally takes around 10 secounds, so the difference (ie timeGetTime - stTot) should only be a small number anyway.
Thanks,
Rob D.
ProIV Resource Centre
Very occasionally I get a runtime error, 'Overflow' from the following statement.
strTime = "Total Load Time:" + Str$(timeGetTime - stTot)
I am setting stTot to timeGetTime at the beginning of an operation, to time something, and its a global DIM as a Long.
The DEFINE for the timeGetTime is:
Public Declare Function timeGetTime Lib "winmm.dll" () As Long
I cant understand why this line would get an Overflow, since everything is 'Long'.
The operation normally takes around 10 secounds, so the difference (ie timeGetTime - stTot) should only be a small number anyway.
Thanks,
Rob D.
ProIV Resource Centre