ADOUser
01-25-2006, 07:28 AM
In my VB project I have a progress bar which I increment to display the progress of the process when the program runs. I get an overflow error at the code where I increment the progressbar.value. Here is the code.
Dim nTotal As Integer 'Items in queue
Dim nCount As Integer 'Items processed so far
'********************************************************
'** Update the progress bar
'********************************************************* If nCount > nTotal Then
Let prgProgress.Value = 100
Else
Let prgProgress.Value = (nCount * 100) / nTotal
End If
nTotal was 392 and the nCount was 328 when this error happend. Can anyone help me with this problem???
Dim nTotal As Integer 'Items in queue
Dim nCount As Integer 'Items processed so far
'********************************************************
'** Update the progress bar
'********************************************************* If nCount > nTotal Then
Let prgProgress.Value = 100
Else
Let prgProgress.Value = (nCount * 100) / nTotal
End If
nTotal was 392 and the nCount was 328 when this error happend. Can anyone help me with this problem???