I have the following function - it's not too difficult, as you can see...but the condition "length = 0" WILL NOT TRAP!
This is VB 5.0...anybody have any freakin' ideas?
I tried it in baseline code first and then tried breaking it out as a function - no dice either way.
Private Function SetFactor(length As Integer)
On Error GoTo FactorError
SetFactor = 32767 / length
Exit Function
FactorError:
MsgBox "Bad CRN length"
End Function
This is VB 5.0...anybody have any freakin' ideas?
I tried it in baseline code first and then tried breaking it out as a function - no dice either way.
Private Function SetFactor(length As Integer)
On Error GoTo FactorError
SetFactor = 32767 / length
Exit Function
FactorError:
MsgBox "Bad CRN length"
End Function