ASP Error help...

Demon

Guppy
Microsoft VBScript runtime error '800a0006'

Overflow

/wwf/forum_posts.asp, line 811

Line in question: FormatPercent(lngAuthorHP / lngAuthorMax_HP, 0)

I need some help figuring out a solution to this error... Thanks in advance to anyone who can help.
 
Demon said:
Microsoft VBScript runtime error '800a0006'

Overflow

/wwf/forum_posts.asp, line 811

Line in question: FormatPercent(lngAuthorHP / lngAuthorMax_HP, 0)

I need some help figuring out a solution to this error... Thanks in advance to anyone who can help.

"lngAuthorMax_HP" is probably 0 (zero) at some point.
 
just got the same error in one of my apps.
both values have to be greater or equal to 1

Set an If line before the calculation:

If lngAuthorHP >= 1 And lngAuthorMax_HP >=1 Then
value = FormatPercent(lngAuthorHP / lngAuthorMax_HP, 0)
Else
value = 0
End If
 
Back
Top