• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3251
  • Last Modified:

Microsoft VBScript runtime error '800a0006' Overflow

I need a solution to this problem, Ive tried many, many things.  Please let me know if you can solve it.

Microsoft VBScript runtime error '800a0006'

Overflow

/wwf/forum_posts.asp, line 811

Line in question: FormatPercent(lngAuthorHP / lngAuthorMax_HP, 0)
0
DIDD0
Asked:
DIDD0
1 Solution
 
RajmaheshCommented:
hi
try to store the expression   "  lngAuthorHP / lngAuthorMax_HP "       in a separate variable and use that variable inside the formatpercent() funtion
0
 
DIDD0Author Commented:
naw, now the problem is: strHPPercent = lngAuthorHP / lngAuthorMax_HP

I think its got something to do with the division function... weird...
0
 
KarcOriginCommented:
Could you please send the values of  lngAuthorHP and lngAuthorMax_HP
I am waiting
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
DIDD0Author Commented:
0 and 0 for now
0
 
DIDD0Author Commented:
oh I gotcha thanxs, you solved it :D
0
 
brgivensCommented:
Those values would cause a divide by zero error

If lngAuthorMax_HP = 0 Then
  variable = "0%"
Else
  variable = FormatPercent(lngAuthorHP / lngAuthorMax_HP, 0)
End If
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now