?
Solved

Microsoft VBScript runtime error '800a0006'  Overflow

Posted on 2004-04-06
6
Medium Priority
?
3,150 Views
Last Modified: 2007-12-19
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
Comment
Question by:DIDD0
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Expert Comment

by:Rajmahesh
ID: 10772268
hi
try to store the expression   "  lngAuthorHP / lngAuthorMax_HP "       in a separate variable and use that variable inside the formatpercent() funtion
0
 

Author Comment

by:DIDD0
ID: 10772374
naw, now the problem is: strHPPercent = lngAuthorHP / lngAuthorMax_HP

I think its got something to do with the division function... weird...
0
 
LVL 5

Accepted Solution

by:
KarcOrigin earned 200 total points
ID: 10772416
Could you please send the values of  lngAuthorHP and lngAuthorMax_HP
I am waiting
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:DIDD0
ID: 10772427
0 and 0 for now
0
 

Author Comment

by:DIDD0
ID: 10772448
oh I gotcha thanxs, you solved it :D
0
 
LVL 7

Expert Comment

by:brgivens
ID: 10772469
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question