Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2008, 03:08 PM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft VBScript runtime (0x800A0005)

I am using the log function to calculate a field on my form and I am getting the following error:

Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'log'


How can this be resolved.

 
Old March 23rd, 2008, 11:42 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Show the line of code that is causing the error.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
My blog... please visit
 
Old March 25th, 2008, 06:47 AM
Authorized User
 
Join Date: Mar 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Send the code so we can try to solve your problem.

 
Old March 27th, 2008, 11:56 AM
Registered User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using the log function to calculate a field on my form and I am getting the following error:

Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'log'

The line that is causing the error is X = ((-log(1-0.01333*193000/770)/log(1+0.01333))/12) this is an example.

I am trying to determine the term of a loan given the monthly interest rate, the loan amount and the monthly payment amount.

The formula to determine the term of a loan is: loanTerm = ((-log(1-monthlyInterest*loanAmount/monthlyLoanPayment)/log(1+monthlyInterest))/12)

Thanks in advance.


 
Old March 27th, 2008, 03:42 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You cannot pass a negative value into the Log function. The result of 1-0.01333*193000/770 is a negative number. You'll have to adjust your forumla to deal with this... I am sure that has been worked out many times and someone somewhere has posted it on the internet.

Have fun

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
My blog... please visit





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript runtime (0x800A0005) Swetz Classic ASP Components 0 May 14th, 2006 03:44 AM
Microsoft VBScript runtime (0x800A000D) stitch Classic ASP Basics 1 April 27th, 2006 02:23 PM
Microsoft VBScript runtime (0x800A01B6) texasraven Classic ASP Basics 24 June 24th, 2004 06:22 AM
Microsoft VBScript runtime (0x800A0009) ppenn Classic ASP Databases 2 December 15th, 2003 01:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.