• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3378
  • 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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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