Solved

Microsoft VBScript runtime error '800a0006'  Overflow

Posted on 2004-04-06
6
3,039 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
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 50 total points
ID: 10772416
Could you please send the values of  lngAuthorHP and lngAuthorMax_HP
I am waiting
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Filter Question 8 86
ASP CDO - Limiting Connections 3 59
Get hold of longitude and latitude in iframe string 11 48
wordpress display sub menu only when click 12 50
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 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