Solved

Microsoft VBScript runtime error '800a0006'  Overflow

Posted on 2004-04-06
6
3,008 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

864 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now